mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Back out bkgd changes, now acts per braindamaged sysv standard
This commit is contained in:
parent
9088576b20
commit
eaa36bec77
2 changed files with 4 additions and 11 deletions
|
|
@ -56,14 +56,10 @@ chtype ch = c;
|
|||
T(("win attr = %x", win->_attrs));
|
||||
ch |= win->_attrs;
|
||||
|
||||
/* Don't attempt to replace any given attributes */
|
||||
if ((ch&A_ATTRIBUTES) == A_NORMAL) {
|
||||
if (ch == ' ')
|
||||
ch = win->_bkgd;
|
||||
if (win->_line[y][x]&A_CHARTEXT == ' ')
|
||||
ch |= win->_bkgd;
|
||||
else
|
||||
ch |= (win->_bkgd&A_ATTRIBUTES);
|
||||
}
|
||||
|
||||
T(("bkg = %x -> ch = %x", win->_bkgd, ch));
|
||||
|
||||
if (win->_line[y][x] != ch) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue