X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_forms.c;fp=test%2Fdemo_forms.c;h=b61fceb19a11ee39a959050e5baebb4fcf0f21ee;hp=1e6806d2e52392926b9ad6ded2cc11ee58933113;hb=c6f54649ed4bf49ec27a522816984d2290201438;hpb=0dc2639645b2cc67271247405709161df24a771f diff --git a/test/demo_forms.c b/test/demo_forms.c index 1e6806d2..b61fceb1 100644 --- a/test/demo_forms.c +++ b/test/demo_forms.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2003-2012,2013 Free Software Foundation, Inc. * + * Copyright (c) 2003-2013,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_forms.c,v 1.46 2013/09/28 21:55:54 tom Exp $ + * $Id: demo_forms.c,v 1.48 2014/07/27 00:26:01 tom Exp $ * * Demonstrate a variety of functions from the form library. * Thomas Dickey - 2003/4/26 @@ -208,7 +208,7 @@ make_field(const char *label, int frow, int fcol, int rows, int cols) if (d_option) { if (has_colors()) { set_field_fore(f, (chtype) COLOR_PAIR(2)); - set_field_back(f, A_UNDERLINE | COLOR_PAIR(3)); + set_field_back(f, (A_UNDERLINE | (chtype) COLOR_PAIR(3))); } else { set_field_fore(f, A_BOLD); }