]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it
authorChong Yidong <cyd@stupidchicken.com>
Mon, 27 Oct 2008 22:20:46 +0000 (22:20 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 27 Oct 2008 22:20:46 +0000 (22:20 +0000)
with the default glyph width.

src/w32term.c
src/xterm.c

index c81945e3e04869f71544abd68ffc45edcecc6eed..7201455e1fff5f7ab16619772e14369ec01e6adf 100644 (file)
@@ -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);
index f272c93404320f7ea8d246ece887e3900d9bf54b..264f2c213638f00813fd791a53dd4f7820e0ce78 100644 (file)
@@ -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);