diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
| commit | c8a57a4fe56f3245fcb57b55188c8a336340b078 (patch) | |
| tree | 7f7f89b59e18742d35d82f795df7418c5e33545e /lib/libncurses/lib_clrbot.c | |
| parent | ed29ca4685d39742de8539c10654fb23eb026e6a (diff) | |
Notes
Diffstat (limited to 'lib/libncurses/lib_clrbot.c')
| -rw-r--r-- | lib/libncurses/lib_clrbot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libncurses/lib_clrbot.c b/lib/libncurses/lib_clrbot.c index fa48db8a8ebd..e803920a8af7 100644 --- a/lib/libncurses/lib_clrbot.c +++ b/lib/libncurses/lib_clrbot.c @@ -12,8 +12,6 @@ #include "curses.priv.h" -#define BLANK ' '|A_NORMAL - int wclrtobot(WINDOW *win) { chtype *ptr, *end, *maxx = NULL; @@ -30,11 +28,13 @@ int y, startx, minx; end = &win->_line[y][win->_maxx]; for (ptr = &win->_line[y][startx]; ptr <= end; ptr++) { - if (*ptr != BLANK) { + chtype blank = _nc_background(win); + + if (*ptr != blank) { maxx = ptr; if (minx == _NOCHANGE) minx = ptr - win->_line[y]; - *ptr = BLANK; + *ptr = blank; } } |
