From 7552105e10cd6a20ee7e091ab14eabcd77ef8c17 Mon Sep 17 00:00:00 2001 From: villa Date: Thu, 6 Apr 1995 08:08:44 +0000 Subject: [PATCH] Corretti problemi di scrolling git-svn-id: svn://10.65.10.50/trunk@1208 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/viswin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/viswin.cpp b/include/viswin.cpp index 2e61b50bc..48993b4d7 100755 --- a/include/viswin.cpp +++ b/include/viswin.cpp @@ -723,7 +723,7 @@ void TViswin::paint_column (long j, bool end) RCT clipper; xvt_rect_set(&clipper, tabx(X_OFFSET), 0, tabx(X_OFFSET+1), taby(int(_textrows))); if (end) - xvt_rect_offset(&clipper, tabx(int(_textcolumns)), 0); + xvt_rect_offset(&clipper, tabx(int(_textcolumns-1)), 0); xvt_dwin_set_clip(win(), &clipper); const int col = end ? (int) (_textcolumns + X_OFFSET -1) : X_OFFSET; @@ -1478,7 +1478,7 @@ void TViswin::handler (WINDOW win, EVENT * ep) _point.y++; _need_scroll = up; } - else scroll_error(-1, _txt.lines()-_textrows-1); + else scroll_error(-1, _txt.lines()-_textrows/*-1*/); } else {