From: Timo Korvola Date: Wed, 24 Jan 2018 21:59:15 +0000 (+0200) Subject: Fix unix_resize_display. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=982df1051939c34a49fd5c711e510227f560dc35;p=liskon_frotz.git Fix unix_resize_display. COLS and LINES are updated by refresh(), so that needs to come first. --- diff --git a/src/curses/ux_screen.c b/src/curses/ux_screen.c index 0e2d703..7a8be2f 100644 --- a/src/curses/ux_screen.c +++ b/src/curses/ux_screen.c @@ -144,7 +144,10 @@ void os_scroll_area (int top, int left, int bottom, int right, int units) */ void unix_resize_display(void) { - int x, y; +// int x, y; + + endwin(); + refresh(); /* Notify the game that the display needs refreshing */ if (h_version == V6) @@ -164,9 +167,6 @@ void unix_resize_display(void) restart_header(); } - endwin(); - refresh(); - // clearok(stdscr, 1); // redrawwin(stdscr); // refresh();