Mercurial > emacs
diff src/xdisp.c @ 33568:ea6ead04f574
(pos_visible_p): Compute the default character height
differently.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 17 Nov 2000 15:38:35 +0000 |
parents | de985bc39ea3 |
children | b501918e1c9d |
line wrap: on
line diff
--- a/src/xdisp.c Fri Nov 17 12:59:35 2000 +0000 +++ b/src/xdisp.c Fri Nov 17 15:38:35 2000 +0000 @@ -1002,8 +1002,15 @@ ? it.max_ascent + it.max_descent : last_height); } - else - line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame))); + else + { + /* Use the default character height. */ + it.what = IT_CHARACTER; + it.c = ' '; + it.len = 1; + PRODUCE_GLYPHS (&it); + line_height = it.ascent + it.descent; + } } line_bottom_y = line_top_y + line_height;