From 9b93863787342c5c3053c9c8206490f621c1b404 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 18 Aug 2010 22:06:11 +0300 Subject: [PATCH] xterm.c (x_draw_bar_cursor): Fix last change. --- src/xterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 420c5ccc7fd..c049ce78913 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7152,6 +7152,8 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text if (kind == BAR_CURSOR) { + int x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x); + if (width < 0) width = FRAME_CURSOR_WIDTH (f); width = min (cursor_glyph->pixel_width, width); @@ -7163,8 +7165,7 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text if ((cursor_glyph->resolved_level & 1) != 0) x += cursor_glyph->pixel_width - width; - XFillRectangle (dpy, window, gc, - WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x), + XFillRectangle (dpy, window, gc, x, WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y), width, row->height); } -- 2.39.2