diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-10 10:19:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-10 10:19:47 +0000 |
commit | 355e7dd84128a2d247a1021b2dbd9e9bbed0e7f3 (patch) | |
tree | ef57e77851b5e944970710276c626a2d2e528a5b /src/fe-text/screen.c | |
parent | 98a73539aebf81a5c373ef869ae5af9cb5c857b6 (diff) | |
download | irssi-355e7dd84128a2d247a1021b2dbd9e9bbed0e7f3.zip |
theme->default_color is now used again, added default_bold_color which
is used with default bolds since A_NORMAL|A_BOLD doesn't seem to do
anything with curses..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1206 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/screen.c')
-rw-r--r-- | src/fe-text/screen.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fe-text/screen.c b/src/fe-text/screen.c index d38ab88f..65f30bf9 100644 --- a/src/fe-text/screen.c +++ b/src/fe-text/screen.c @@ -213,11 +213,12 @@ void set_color(WINDOW *window, int col) if (!use_colors) attr = (col & 0x70) ? A_REVERSE : 0; - else { - attr = (col & ATTR_COLOR8) ? - (A_DIM | COLOR_PAIR(63)) : - (COLOR_PAIR((col&7) + (col&0x70)/2)); - } + else if (col & ATTR_COLOR8) + attr = (A_DIM | COLOR_PAIR(63)); + else if ((col & 0x77) == 0) + attr = A_NORMAL; + else + attr = (COLOR_PAIR((col&7) + (col&0x70)/2)); if (col & 0x08) attr |= A_BOLD; if (col & 0x80) attr |= A_BLINK; |