changeset 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 36b0ab070ac3
children 5cb9bbd57f3b
files src/nsterm.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;