Mercurial > emacs
diff src/nsterm.m @ 99172:4ffcb3e1114a
(ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw
it with the default glyph width.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 27 Oct 2008 22:30:38 +0000 |
parents | 713fc3ab99e5 |
children | de06f7b71b82 |
line wrap: on
line diff
--- a/src/nsterm.m Mon Oct 27 22:29:22 2008 +0000 +++ b/src/nsterm.m Mon Oct 27 22:30:38 2008 +0000 @@ -2341,6 +2341,7 @@ case HBAR_CURSOR: s = r; s.origin.y += lrint (0.75 * s.size.height); + s.size.width = min (FRAME_COLUMN_WIDTH (f), s.size.width); s.size.height = lrint (s.size.height * 0.25); NSRectFill (s); break;