X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fnewdemo.c;h=b7c5db61acfc8add1db9149d31c97d6980b4a213;hb=b6d0d9ad9e372e856f01a4c283cf784a15993903;hp=75626a9051e174043b6891d64fa5a47b65bf25df;hpb=1d7867d33e6954be7c7121b1028ad6768f487752;p=ncurses.git diff --git a/test/newdemo.c b/test/newdemo.c index 75626a90..b7c5db61 100644 --- a/test/newdemo.c +++ b/test/newdemo.c @@ -2,7 +2,7 @@ * newdemo.c - A demo program using PDCurses. The program illustrate * the use of colours for text output. * - * $Id: newdemo.c,v 1.35 2010/12/12 00:19:15 tom Exp $ + * $Id: newdemo.c,v 1.36 2012/06/09 19:17:29 tom Exp $ */ #include @@ -84,7 +84,7 @@ set_colors(WINDOW *win, int pair, int foreground, int background) if (pair > COLOR_PAIRS) pair = COLOR_PAIRS; init_pair((short) pair, (short) foreground, (short) background); - (void) wattrset(win, (attr_t) COLOR_PAIR(pair)); + (void) wattrset(win, (int) COLOR_PAIR(pair)); } } @@ -96,7 +96,7 @@ use_colors(WINDOW *win, int pair, chtype attrs) pair = COLOR_PAIRS; attrs |= (chtype) COLOR_PAIR(pair); } - (void) wattrset(win, attrs); + (void) wattrset(win, (int) attrs); return attrs; }