client title strings in messages file
[netris.git] / curses.c
index e0a77ab46a0519eb50bf1fff6521c647e60b0363..bb3834eaab3803b00b829ec177f5eb8f23db9373 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -210,12 +210,11 @@ void DrawTitle(void)
        standout();
 #endif
        getmaxyx(stdscr, rows, cols);
-       sprintf(s, " NETRIS %s", version_string);
+       sprintf(s, " " MSG_TITLE " %s", version_string);
        memset(&s[strlen(s)], ' ', 254 - strlen(s));
-       if (cols > 56 + strlen(version_string))
-               memcpy(&s[cols - 48],
-                       "(C)1994-1996,1999 Mark H. Weaver, (C)2002 Shiar \0", 49);
-       else memcpy(&s[cols], "\0", 1);
+       if (cols > strlen(MSG_TITLE) + 2 + strlen(version_string) + 1 + strlen(MSG_TITLESUB))
+               memcpy(&s[cols - 1 - strlen(MSG_TITLESUB)], MSG_TITLESUB, sizeof(MSG_TITLESUB) - 1);
+       memcpy(&s[cols], "\0", 1);
        mvaddstr(0, 0, s);
        standend();     //normal text
 }