Commit d3424e67 authored by Chong Yidong's avatar Chong Yidong

(x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it

with the default glyph width.
parent e2e325aa
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment