X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fblue.c;h=9c4108a41a6a6d51717bc4ab8c747bfc136914b1;hp=cb088ee830d65e08caccc37f68174e1b764cf37f;hb=12b49d3c56a6130feb2d39fbe2d6c1bc0838f0fa;hpb=93ed44d781ca36f55021e0ad55f1ce33de62f7ba diff --git a/test/blue.c b/test/blue.c index cb088ee8..9c4108a4 100644 --- a/test/blue.c +++ b/test/blue.c @@ -36,7 +36,7 @@ *****************************************************************************/ /* - * $Id: blue.c,v 1.49 2017/04/15 13:36:36 tom Exp $ + * $Id: blue.c,v 1.51 2017/09/30 17:43:18 tom Exp $ */ #include @@ -202,7 +202,7 @@ printcard(int value) } else { int which = (value / SUIT_LENGTH); int isuit = (value % SUIT_LENGTH); - attr_t color = (attr_t) COLOR_PAIR(((which % 2) == 0) + chtype color = (chtype) COLOR_PAIR(((which % 2) == 0) ? RED_ON_WHITE : BLACK_ON_WHITE); @@ -467,13 +467,11 @@ use_pc_display(void) int main(int argc, char *argv[]) { - CATCHALL(die); - setlocale(LC_ALL, ""); use_pc_display(); - initscr(); + InitAndCatch(initscr(), die); start_color(); init_pair(RED_ON_WHITE, COLOR_RED, COLOR_WHITE);