From: Eli Zaretskii Date: Wed, 18 Aug 2010 19:06:11 +0000 (+0300) Subject: xterm.c (x_draw_bar_cursor): Fix last change. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~48^2~245 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b93863787342c5c3053c9c8206490f621c1b404;p=emacs.git xterm.c (x_draw_bar_cursor): Fix last change. --- 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); }