changeset 44849:b2c04d1e30ff

(x_draw_phys_cursor_glyph): Take into account that a box cursor on a stretch glyph has a width that depends on x_stretch_cursor_p.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 25 Apr 2002 17:26:55 +0000
parents c1038e3c47bd
children 6a10724b89fe
files src/xterm.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Apr 25 16:30:49 2002 +0000
+++ b/src/xterm.c	Thu Apr 25 17:26:55 2002 +0000
@@ -11478,7 +11478,13 @@
 	{
 	  struct glyph *cursor_glyph = get_phys_cursor_glyph (w);
 	  if (cursor_glyph)
-	    w->phys_cursor_width = cursor_glyph->pixel_width;
+	    {
+	      if (x_stretch_cursor_p)
+		w->phys_cursor_width = cursor_glyph->pixel_width;
+	      else
+		w->phys_cursor_width = min (CANON_X_UNIT (XFRAME (w->frame)),
+					    cursor_glyph->pixel_width);
+	    }
 	}
 
       /* When we erase the cursor, and ROW is overlapped by other