1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-09-01 17:14:15 -04:00

Minimise flickering when resizing the console window

This commit is contained in:
John Zaitseff 2011-08-12 16:09:38 +10:00
parent 6594ff3daa
commit b27af38537

View File

@ -125,7 +125,7 @@ txwin_t *firstwin = NULL; // First (bottom-most) txwin structure
Returns: (nothing) Returns: (nothing)
This function draws the main window game title, "Star Traders", and 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); static void init_title (void);
@ -344,6 +344,7 @@ void init_screen (void)
} }
init_title(); init_title();
refresh();
} }
@ -379,9 +380,7 @@ void init_title (void)
} }
center(stdscr, 0, attr_game_title, "Star Traders"); center(stdscr, 0, attr_game_title, "Star Traders");
attrset(attr_root_window); attrset(attr_root_window);
refresh();
} }