From 66dccee7f98eda7f15370d7cbf5f75856f06fbec Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 23 Jul 2000 23:41:47 +0000 Subject: [PATCH] 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 --- src/fe-text/gui-printtext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index a38aa4c8..2de15309 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -186,7 +186,10 @@ static void get_colors(int flags, int *fg, int *bg) } 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_BLINK) *bg |= 0x80; }