1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Display bolds with the current_theme->default_color color, not with the

"default color" (0) since it doesn't seem to work right with all
terminals.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@531 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-23 23:41:47 +00:00 committed by cras
parent eebfab17cb
commit 66dccee7f9

View File

@ -186,7 +186,10 @@ static void get_colors(int flags, int *fg, int *bg)
} }
if (*fg == 8) *fg |= ATTR_COLOR8; if (*fg == 8) *fg |= ATTR_COLOR8;
if (flags & PRINTFLAG_BOLD) *fg |= 8; if (flags & PRINTFLAG_BOLD) {
if (*fg == 0) *fg = current_theme->default_color;
*fg |= 8;
}
if (flags & PRINTFLAG_UNDERLINE) *fg |= ATTR_UNDERLINE; if (flags & PRINTFLAG_UNDERLINE) *fg |= ATTR_UNDERLINE;
if (flags & PRINTFLAG_BLINK) *bg |= 0x80; if (flags & PRINTFLAG_BLINK) *bg |= 0x80;
} }