X-Git-Url: http://git.shiar.net/netris.git/blobdiff_plain/e799b9a7fe08744f8c99557a067ecb442860b69c..3893341884fe96131de8e2417d2bdfdf7e42479c:/curses.c diff --git a/curses.c b/curses.c index 11fac6e..5856f65 100644 --- a/curses.c +++ b/curses.c @@ -29,7 +29,7 @@ #include "curses.h" #include "util.h" #include "board.h" -#include "msg.en.h" +#include "msg.h" #ifdef NCURSES_VERSION # define HAVE_NCURSES @@ -213,7 +213,7 @@ void DrawTitle(void) s = malloc(cols + 1); sprintf(s, " " MSG_TITLE " %s", version_string); const int titlelen = strlen(s); - memset(&s[titlelen], ' ', cols - strlen(MSG_TITLE)); // pad + memset(&s[titlelen], ' ', cols - titlelen); // pad if (cols > titlelen + 1 + strlen(MSG_TITLESUB)) memcpy(&s[cols - 1 - strlen(MSG_TITLESUB)], MSG_TITLESUB, sizeof(MSG_TITLESUB) - 1); memcpy(&s[cols], "\0", 1); @@ -337,10 +337,6 @@ void InitFields(void) DrawField(scr); } -void CleanupScreen(int scr) -{ -} - void DisplayMessage(char *p) { char s[MSG_WIDTH];