Fixed "ctrl + c to exit" at the bottom line

This commit is contained in:
2017-05-06 14:50:28 +02:00
parent 73a36e65b7
commit acad4c7495

View File

@@ -118,7 +118,7 @@ void showStartScreen(game_state *gs) {
void updateScreen(game_state *gs) { void updateScreen(game_state *gs) {
mvprintw(0, 1, "Remaining wrong guesses: %i", (gs->allowedMoves - gs->moves)); mvprintw(0, 1, "Remaining wrong guesses: %i", (gs->allowedMoves - gs->moves));
mvprintw(gs->maxy - 1, 1, "Press ctrl + c to exit."); mvprintw(gs->maxy, 1, "Press ctrl + c to exit.");
drawGuessWord(gs); drawGuessWord(gs);
mvprintw(1, 1, "Wrong characters: %s", gs->wrongCharacters); mvprintw(1, 1, "Wrong characters: %s", gs->wrongCharacters);
refresh(); refresh();