aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-10-27 22:20:46 +0000
committerChong Yidong2008-10-27 22:20:46 +0000
commitd3424e67eb01c12dcdc0c48545f870256c330eb7 (patch)
tree66237aac5cad814aab8f2e4aeda981eaa8c516db
parente2e325aaaf57a56526f5ea06d12cde8f10925d55 (diff)
downloademacs-d3424e67eb01c12dcdc0c48545f870256c330eb7.tar.gz
emacs-d3424e67eb01c12dcdc0c48545f870256c330eb7.zip
(x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it
with the default glyph width.
-rw-r--r--src/w32term.c3
-rw-r--r--src/xterm.c2
2 files changed, 3 insertions, 2 deletions
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)
4985 w32_fill_area (f, hdc, cursor_color, x, 4985 w32_fill_area (f, hdc, cursor_color, x,
4986 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y + 4986 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y +
4987 row->height - width), 4987 row->height - width),
4988 cursor_glyph->pixel_width, width); 4988 min (FRAME_COLUMN_WIDTH (f), cursor_glyph->pixel_width),
4989 width);
4989 } 4990 }
4990 4991
4991 w32_set_clip_rectangle (hdc, NULL); 4992 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)
7441 WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x), 7441 WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x),
7442 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y + 7442 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y +
7443 row->height - width), 7443 row->height - width),
7444 cursor_glyph->pixel_width, 7444 min (FRAME_COLUMN_WIDTH (f), cursor_glyph->pixel_width),
7445 width); 7445 width);
7446 7446
7447 XSetClipMask (dpy, gc, None); 7447 XSetClipMask (dpy, gc, None);