# HG changeset patch # User Gerd Moellmann # Date 978964660 0 # Node ID 67fa29af4c7b507695c000b3316c71ed56e7dc94 # Parent 95799f3353e7d32dc1a6a61cbcd568bfe6f70ae3 (window_scroll_pixel_based): Adjust glyph matrices when increasing window's vscroll. diff -r 95799f3353e7 -r 67fa29af4c7b src/window.c --- a/src/window.c Mon Jan 08 13:19:18 2001 +0000 +++ b/src/window.c Mon Jan 08 14:37:40 2001 +0000 @@ -3995,10 +3995,13 @@ { if (it.current_y + it.max_ascent + it.max_descent > it.last_visible_y) - /* The last line was only partially visible, make it fully - visible. */ - w->vscroll = (it.last_visible_y - - it.current_y + it.max_ascent + it.max_descent); + { + /* The last line was only partially visible, make it fully + visible. */ + w->vscroll = (it.last_visible_y + - it.current_y + it.max_ascent + it.max_descent); + adjust_glyphs (it.f); + } else if (noerror) return; else