changeset 1901:249bbc275f58

a little overlap when paging up/down
author corvid <corvid@lavabit.com>
date Tue, 08 Feb 2011 06:22:05 +0000
parents 10bca1660013
children 06fb15f69228
files dw/fltkviewport.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewport.cc	Fri Feb 04 17:08:37 2011 +0000
+++ b/dw/fltkviewport.cc	Tue Feb 08 06:22:05 2011 +0000
@@ -375,9 +375,9 @@
 void FltkViewport::scroll (core::ScrollCommand cmd)
 {
    if (cmd == core::SCREEN_UP_CMD) {
-      scroll (0, -h ());
+      scroll (0, -h () + vscrollbar->linesize ());
    } else if (cmd == core::SCREEN_DOWN_CMD) {
-      scroll (0, h ());
+      scroll (0, h () - vscrollbar->linesize ());
    } else if (cmd == core::LINE_UP_CMD) {
       scroll (0, (int) -vscrollbar->linesize ());
    } else if (cmd == core::LINE_DOWN_CMD) {