comparison 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
comparison
equal deleted inserted replaced
33567:1e02032f5cd5 33568:ea6ead04f574
1000 move_it_by_lines (&it, 1, 1); 1000 move_it_by_lines (&it, 1, 1);
1001 line_height = (it.max_ascent || it.max_descent 1001 line_height = (it.max_ascent || it.max_descent
1002 ? it.max_ascent + it.max_descent 1002 ? it.max_ascent + it.max_descent
1003 : last_height); 1003 : last_height);
1004 } 1004 }
1005 else 1005 else
1006 line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame))); 1006 {
1007 /* Use the default character height. */
1008 it.what = IT_CHARACTER;
1009 it.c = ' ';
1010 it.len = 1;
1011 PRODUCE_GLYPHS (&it);
1012 line_height = it.ascent + it.descent;
1013 }
1007 } 1014 }
1008 line_bottom_y = line_top_y + line_height; 1015 line_bottom_y = line_top_y + line_height;
1009 1016
1010 if (line_top_y < window_top_y) 1017 if (line_top_y < window_top_y)
1011 visible_p = line_bottom_y > window_top_y; 1018 visible_p = line_bottom_y > window_top_y;