aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-08 14:37:40 +0000
committerGerd Moellmann2001-01-08 14:37:40 +0000
commita74eca500004b046006d4eaf7c59760fccf9e545 (patch)
tree457024e8d001dd21b925505062d3cb387d90c33c
parenta758f97d7f5a6588d64cf84b48aba52ce53b3676 (diff)
downloademacs-a74eca500004b046006d4eaf7c59760fccf9e545.tar.gz
emacs-a74eca500004b046006d4eaf7c59760fccf9e545.zip
(window_scroll_pixel_based): Adjust glyph matrices
when increasing window's vscroll.
-rw-r--r--src/window.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index 16455f59220..87b2c59ddb2 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3995,10 +3995,13 @@ window_scroll_pixel_based (window, n, whole, noerror)
3995 { 3995 {
3996 if (it.current_y + it.max_ascent + it.max_descent 3996 if (it.current_y + it.max_ascent + it.max_descent
3997 > it.last_visible_y) 3997 > it.last_visible_y)
3998 /* The last line was only partially visible, make it fully 3998 {
3999 visible. */ 3999 /* The last line was only partially visible, make it fully
4000 w->vscroll = (it.last_visible_y 4000 visible. */
4001 - it.current_y + it.max_ascent + it.max_descent); 4001 w->vscroll = (it.last_visible_y
4002 - it.current_y + it.max_ascent + it.max_descent);
4003 adjust_glyphs (it.f);
4004 }
4002 else if (noerror) 4005 else if (noerror)
4003 return; 4006 return;
4004 else 4007 else