X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fcursesdsp.c;h=4d00015a30b575c5f72be2951b29feff31461ff0;hb=9877df618bced42e77c2ea0e3498dd1b514a4d77;hp=10eeae612a1e8d6bba17feb46eaaa27927f76b23;hpb=95369c6cb63d6513f7381dc3cc92c1f34044c607;p=gnushogi.git diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 10eeae6..4d00015 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -30,6 +30,8 @@ * ---------------------------------------------------------------------- */ +/* request *snprintf prototypes*/ +#define _POSIX_C_SOURCE 200112L #include #include @@ -145,7 +147,7 @@ void ShowHeader(void) { gotoXY(TAB, 2); - printw("GNU Shogi %s (pl %s)", version, patchlevel); + printw("GNU Shogi %s", PACKAGE_VERSION); } @@ -388,7 +390,7 @@ void Curses_help(void) { Curses_ClearScreen(); - printw("GNU Shogi %sp%s command summary\n", version, patchlevel); + printw("GNU Shogi %s command summary\n", PACKAGE_VERSION); printw("-------------------------------" "---------------------------------\n"); printw("7g7f move from 7g to 7f quit Exit Shogi\n"); @@ -854,10 +856,17 @@ Curses_UpdateDisplay(short f, short t, short redraw, short isspec) gotoXY(3, 4 + 2*NO_ROWS); printw(" "); +#ifndef MINISHOGI if (flag.reverse) printw(" 1 2 3 4 5 6 7 8 9"); else printw(" 9 8 7 6 5 4 3 2 1"); +#else + if (flag.reverse) + printw(" 1 2 3 4 5"); + else + printw(" 1 2 3 4 5"); +#endif for (sq = 0; sq < NO_SQUARES; sq++) DrawPiece(sq); @@ -998,7 +1007,7 @@ Curses_SelectLevel(char *sx) Curses_ClearScreen(); gotoXY(32, 2); - printw("GNU Shogi %sp%s", version, patchlevel); + printw("GNU Shogi %s", PACKAGE_VERSION); gotoXY(20, 4); printw(" 1. 40 moves in 5 minutes"); gotoXY(20, 5);