From: Miroslav Lichvar Date: Thu, 20 Mar 2008 18:51:34 +0000 (+0100) Subject: redisplay also last line X-Git-Tag: r0-52-9~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5baf7e4bfc873bc461df402dff347763185b9adc;p=thirdparty%2Fnewt.git redisplay also last line --- diff --git a/newt.c b/newt.c index 51b5a2d..e142558 100644 --- a/newt.c +++ b/newt.c @@ -214,7 +214,7 @@ static int getkey() { int c; while ((c = SLang_getkey()) == '\xC') { /* if Ctrl-L redraw whole screen */ - SLsmg_touch_lines (0, SLtt_Screen_Rows - 1); + SLsmg_touch_lines(0, SLtt_Screen_Rows); SLsmg_refresh(); } return c; @@ -268,7 +268,7 @@ void newtResizeScreen(int redraw) { SLtt_get_screen_size(); /* SLsmg_reinit_smg(); */ if (redraw) { - SLsmg_touch_lines (0, SLtt_Screen_Rows - 1); + SLsmg_touch_lines(0, SLtt_Screen_Rows); newtRefresh(); } } @@ -1017,6 +1017,6 @@ void newtCursorOn(void) { void newtTrashScreen(void) { if (trashScreen) - SLsmg_touch_lines (0, SLtt_Screen_Rows - 1); + SLsmg_touch_lines(0, SLtt_Screen_Rows); }