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
This commit is contained in:
Timo Sirainen 2001-02-10 10:19:47 +00:00 committed by cras
commit 355e7dd841
4 changed files with 18 additions and 12 deletions

View file

@ -266,12 +266,12 @@ static void get_colors(int flags, int *fg, int *bg)
/* mirc colors - real range is 0..15, but after 16
colors wrap to 0, 1, ... */
*fg = *fg < 0 ?
/*current_theme->default_color*/0 : mirc_colors[*fg % 16];
current_theme->default_color : mirc_colors[*fg % 16];
*bg = *bg < 0 ? 0 : mirc_colors[*bg % 16];
} else {
/* default colors */
*fg = *fg < 0 || *fg > 15 ?
/*current_theme->default_color*/0 : *fg;
current_theme->default_color : *fg;
*bg = *bg < 0 || *bg > 15 ? 0 : *bg;
if (*fg > 8) *fg -= 8;
@ -285,7 +285,7 @@ static void get_colors(int flags, int *fg, int *bg)
if (*fg == 8) *fg |= ATTR_COLOR8;
if (flags & PRINTFLAG_BOLD) {
if (*fg == 0) *fg = current_theme->default_color;
if (*fg == 0) *fg = current_theme->default_bold_color;
*fg |= 8;
}
if (flags & PRINTFLAG_UNDERLINE) *fg |= ATTR_UNDERLINE;