]> git.eshelyaron.com Git - emacs.git/commitdiff
(pos_visible_p): Compute the default character height
authorGerd Moellmann <gerd@gnu.org>
Fri, 17 Nov 2000 15:39:14 +0000 (15:39 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 17 Nov 2000 15:39:14 +0000 (15:39 +0000)
differently.

src/ChangeLog
src/xdisp.c

index 6096177d1f05a5d842266e6fc6c9ad6fd784d21c..236433bba20c18badbff669d0f56b52d7e9828d6 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-17  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (pos_visible_p): Compute the default character height
+       differently.
+
 2000-11-16  Gerd Moellmann  <gerd@gnu.org>
 
        * xdisp.c (pos_visible_p): Handle case that we reach ZV without
index e75ae762687d8567ca75e4dd87271178e92f61a3..9b4df8444d4e91776493569d03d60f39378ab94a 100644 (file)
@@ -1002,8 +1002,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
                             ? 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;