From f0c3d8ea2570db062bf6c76ecde080b9957d3dfd Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 26 May 2019 11:31:11 -0400 Subject: Clear the screen between weekly and top boards --- play.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play.c b/play.c index 268530e..8f282ef 100644 --- a/play.c +++ b/play.c @@ -111,9 +111,8 @@ static char board[BoardWidth + 1]; static char *boardTitle(const char *title) { snprintf( board, sizeof(board), - "%*s%*s", - (int)(BoardWidth + strlen(title)) / 2, title, - BoardWidth, "" + "%*s", + (int)(BoardWidth + strlen(title)) / 2, title ); return board; } @@ -248,6 +247,7 @@ int main(int argc, char *argv[]) { noecho(); curs_set(0); getch(); + erase(); scoresRead(top); index = scoresInsert(new); -- cgit 1.4.1