X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fblue.c;h=41b6f357d82820d3278ecb7ff5fc01596a848f34;hp=1d168e37085400846be966b88b6a9313b24a8c17;hb=1dd25cc0259e0683290fe889707b04979b5fda0a;hpb=5723efe1a5c87ef6a0afa2426538156241f380db diff --git a/test/blue.c b/test/blue.c index 1d168e37..41b6f357 100644 --- a/test/blue.c +++ b/test/blue.c @@ -36,7 +36,7 @@ *****************************************************************************/ /* - * $Id: blue.c,v 1.44 2016/04/16 23:20:09 tom Exp $ + * $Id: blue.c,v 1.46 2016/09/05 00:24:27 tom Exp $ */ #include @@ -209,7 +209,7 @@ printcard(int value) addch(ranks[isuit][0] | (chtype) COLOR_PAIR(BLUE_ON_WHITE)); addch(ranks[isuit][1] | (chtype) COLOR_PAIR(BLUE_ON_WHITE)); - attr_on(color, NULL); + attron(color); #if USE_WIDEC_SUPPORT { wchar_t values[2]; @@ -220,7 +220,7 @@ printcard(int value) #else addch((chtype) suits[which]); #endif - attr_off(color, NULL); + attroff(color); } (void) addch(' '); } @@ -331,9 +331,9 @@ play_game(void) } else { char buf[BUFSIZ]; - (void) sprintf(buf, - "Type [%s] to move, r to redraw, q or INTR to quit: ", - live); + _nc_SPRINTF(buf, _nc_SLIMIT(sizeof(buf)) + "Type [%s] to move, r to redraw, q or INTR to quit: ", + live); do { move(PROMPTROW, 0);