changeset 99169:3079e132966c

(x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it with the default glyph width.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 27 Oct 2008 22:20:27 +0000
parents 91d125546add
children 0310a76120f5
files src/w32term.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Mon Oct 27 22:20:05 2008 +0000
+++ b/src/w32term.c	Mon Oct 27 22:20:27 2008 +0000
@@ -4985,7 +4985,8 @@
 	  w32_fill_area (f, hdc, cursor_color, x,
 			 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y +
 						  row->height - width),
-			 cursor_glyph->pixel_width, width);
+			 min (FRAME_COLUMN_WIDTH (f), cursor_glyph->pixel_width),
+			 width);
 	}
 
       w32_set_clip_rectangle (hdc, NULL);