From b27af385376df6f2fd612720ccf3a1beb41f9657 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 12 Aug 2011 16:09:38 +1000 Subject: [PATCH] Minimise flickering when resizing the console window --- src/intf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/intf.c b/src/intf.c index 8560bb3..f120ace 100644 --- a/src/intf.c +++ b/src/intf.c @@ -125,7 +125,7 @@ txwin_t *firstwin = NULL; // First (bottom-most) txwin structure Returns: (nothing) This function draws the main window game title, "Star Traders", and - clears the rest of the screen. + clears the rest of the screen. It does NOT call wrefresh(). */ static void init_title (void); @@ -344,6 +344,7 @@ void init_screen (void) } init_title(); + refresh(); } @@ -379,9 +380,7 @@ void init_title (void) } center(stdscr, 0, attr_game_title, "Star Traders"); - attrset(attr_root_window); - refresh(); }