diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-16 17:33:33 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-16 17:33:33 +0000 | 
| commit | eaa36bec77b7aab22436c07fa39ac2675f3c8c94 (patch) | |
| tree | d76fb53bb2a2920050427a7bf488163ca9de5c51 /lib/libncurses/lib_bkgd.c | |
| parent | 9088576b20dd87adc8e65774dadf5005541e014d (diff) | |
Notes
Diffstat (limited to 'lib/libncurses/lib_bkgd.c')
| -rw-r--r-- | lib/libncurses/lib_bkgd.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libncurses/lib_bkgd.c b/lib/libncurses/lib_bkgd.c index f54e4d130c19..0210995b7eb0 100644 --- a/lib/libncurses/lib_bkgd.c +++ b/lib/libncurses/lib_bkgd.c @@ -27,13 +27,10 @@ int x, y;  	T(("wbkgd(%x, %x) called", win, ch));  	for (y = 0; y < win->_maxy; y++)  		for (x = 0; x < win->_maxx; x++)  -			/* Don't attempt to replace existing attrs */ -			if ((win->_line[y][x]&A_ATTRIBUTES) == A_NORMAL) { -				if (win->_line[y][x] == ' ') -					win->_line[y][x] = ch; +			if (win->_line[y][x]&A_CHARTEXT == ' ') +				win->_line[y][x] |= ch;  			else  				win->_line[y][x] |= (ch&A_ATTRIBUTES); -			}  	touchwin(win);  	return OK;  }  | 
