Mercurial > emacs
changeset 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 | 1e02032f5cd5 |
children | d3d29c3a85c7 |
files | src/xdisp.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
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;