From ea0d0ea7249e8a39210294e08221279eb53c209c Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 5 Jul 2007 01:18:43 +0000 Subject: [PATCH] tuidemo didn't work correctly on monochrome screens when A_COLOR was defined -- the color pair numbers appeared as the corresponding character. --- demos/tui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/tui.c b/demos/tui.c index 728e546e..81041f76 100644 --- a/demos/tui.c +++ b/demos/tui.c @@ -2,7 +2,7 @@ /* * 'textual user interface' * - * $Id: tui.c,v 1.31 2007/06/29 21:40:07 wmcbrine Exp $ + * $Id: tui.c,v 1.32 2007/07/05 01:18:43 wmcbrine Exp $ * * Author : P.J. Kunst (kunst@prl.philips.nl) * Date : 25-02-93 @@ -151,7 +151,7 @@ static void colorbox(WINDOW *win, chtype color, int hasbox) COLOR_PAIR(color & A_CHARTEXT) | (attr & ~A_REVERSE)); else #endif - wbkgd(win, color); + wbkgd(win, attr); werase(win);