changeset 109845:350a910f00bf

xterm.c (x_draw_bar_cursor): Fix last change.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 18 Aug 2010 22:06:11 +0300
parents 7d60b9e85349
children dce0738d09ef 529971ebf9b1
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Aug 18 19:54:08 2010 +0300
+++ b/src/xterm.c	Wed Aug 18 22:06:11 2010 +0300
@@ -7152,6 +7152,8 @@
 
       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 @@
 	  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);
 	}