aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-17 15:39:14 +0000
committerGerd Moellmann2000-11-17 15:39:14 +0000
commit100b593bc44ae68260a6762dc2264c916179bce3 (patch)
tree958ed6e1bda3f0c753e7175fbb7bf985f1cb0d38 /src
parent96403ac1398236e5cde80de8135e480ff0cbe5fa (diff)
downloademacs-100b593bc44ae68260a6762dc2264c916179bce3.tar.gz
emacs-100b593bc44ae68260a6762dc2264c916179bce3.zip
(pos_visible_p): Compute the default character height
differently.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6096177d1f0..236433bba20 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-11-17 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (pos_visible_p): Compute the default character height
4 differently.
5
12000-11-16 Gerd Moellmann <gerd@gnu.org> 62000-11-16 Gerd Moellmann <gerd@gnu.org>
2 7
3 * xdisp.c (pos_visible_p): Handle case that we reach ZV without 8 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
diff --git a/src/xdisp.c b/src/xdisp.c
index e75ae762687..9b4df8444d4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1002,8 +1002,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
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