X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fbackground.c;h=291851b80e8b595841d382f280d5f0206d0e2e47;hp=6c5ad996c5ba74821bf25211921cd95dd15902ec;hb=ed3eb506e9a8e6ea871a2eb5818e19ba36f3f277;hpb=4f84dbbd027e85fc88e2c6be466b3237141e027e diff --git a/test/background.c b/test/background.c index 6c5ad996..291851b8 100644 --- a/test/background.c +++ b/test/background.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: background.c,v 1.14 2014/02/01 22:10:42 tom Exp $ + * $Id: background.c,v 1.15 2014/08/09 22:31:23 tom Exp $ */ #define NEED_COLOR_CODE 1 @@ -65,7 +65,7 @@ test_background(void) printw("Initializing pair 3 to %s/cyan (ACS_HLINE)\n", color_name(default_fg)); init_pair(3, (NCURSES_COLOR_T) default_fg, COLOR_CYAN); printw("...and drawing a box which should be followed by lines\n"); - bkgdset(ACS_HLINE | COLOR_PAIR(3)); + bkgdset(ACS_HLINE | (attr_t) COLOR_PAIR(3)); /* * Characters from vt100 line-drawing should be mapped to line-drawing, * since A_ALTCHARSET is set in the background, and the character part