aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);