too much padding
[netris.git] / curses.c
index 11fac6e1f132bc2491f9b1dfa4f95370e8478585..5856f65f1b8d13b6c8519d09b819108a136ec50a 100644 (file)
--- 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];