aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.c
diff options
context:
space:
mode:
authorKim F. Storm2004-04-24 23:42:26 +0000
committerKim F. Storm2004-04-24 23:42:26 +0000
commit5970dbf71ed191b913bc95dec2c7534165d2bfb7 (patch)
tree14edb2eefa514f1d0bc2a6152a80447a1df0ab99 /src/macterm.c
parentc3ea173da5f8718d9b2677915ee632b85e36f045 (diff)
downloademacs-5970dbf71ed191b913bc95dec2c7534165d2bfb7.tar.gz
emacs-5970dbf71ed191b913bc95dec2c7534165d2bfb7.zip
(x_draw_hollow_cursor): Fix height of box for narrow lines.
Diffstat (limited to 'src/macterm.c')
-rw-r--r--src/macterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macterm.c b/src/macterm.c
index dd5f2504032..fdb61249629 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -4665,7 +4665,8 @@ x_draw_hollow_cursor (w, row)
4665 /* Compute the proper height and ascent of the rectangle, based 4665 /* Compute the proper height and ascent of the rectangle, based
4666 on the actual glyph. Using the full height of the row looks 4666 on the actual glyph. Using the full height of the row looks
4667 bad when there are tall images on that row. */ 4667 bad when there are tall images on that row. */
4668 h = max (FRAME_LINE_HEIGHT (f), cursor_glyph->ascent + cursor_glyph->descent); 4668 h = max (min (FRAME_LINE_HEIGHT (f), row->height),
4669 cursor_glyph->ascent + cursor_glyph->descent);
4669 if (h < row->height) 4670 if (h < row->height)
4670 y += row->ascent /* - w->phys_cursor_ascent */ + cursor_glyph->descent - h; 4671 y += row->ascent /* - w->phys_cursor_ascent */ + cursor_glyph->descent - h;
4671 h--; 4672 h--;