From: Chong Yidong Date: Mon, 27 Oct 2008 22:20:46 +0000 (+0000) Subject: (x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it X-Git-Tag: emacs-pretest-23.0.90~2152 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d3424e67eb01c12dcdc0c48545f870256c330eb7;p=emacs.git (x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it with the default glyph width. --- diff --git a/src/w32term.c b/src/w32term.c index c81945e3e04..7201455e1ff 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -4985,7 +4985,8 @@ x_draw_bar_cursor (w, row, width, kind) 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); diff --git a/src/xterm.c b/src/xterm.c index f272c934043..264f2c21363 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7441,7 +7441,7 @@ x_draw_bar_cursor (w, row, width, kind) WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x), WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y + row->height - width), - cursor_glyph->pixel_width, + min (FRAME_COLUMN_WIDTH (f), cursor_glyph->pixel_width), width); XSetClipMask (dpy, gc, None);