forked from PsychoticNinja/irssi
Print the text with the "default" color (whatever is set with xterm -fg) -
not the theme->default_color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@471 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d3dbd863ae
commit
b3523dd4f8
@ -168,12 +168,12 @@ static void get_colors(int flags, int *fg, int *bg)
|
|||||||
if (flags & PRINTFLAG_MIRC_COLOR) {
|
if (flags & PRINTFLAG_MIRC_COLOR) {
|
||||||
/* mirc colors */
|
/* mirc colors */
|
||||||
*fg = *fg < 0 || *fg > 16 ?
|
*fg = *fg < 0 || *fg > 16 ?
|
||||||
current_theme->default_color : mirc_colors[*fg];
|
/*current_theme->default_color*/0 : mirc_colors[*fg];
|
||||||
*bg = *bg < 0 || *bg > 16 ? 0 : mirc_colors[*bg];
|
*bg = *bg < 0 || *bg > 16 ? 0 : mirc_colors[*bg];
|
||||||
} else {
|
} else {
|
||||||
/* default colors */
|
/* default colors */
|
||||||
*fg = *fg < 0 || *fg > 15 ?
|
*fg = *fg < 0 || *fg > 15 ?
|
||||||
current_theme->default_color : *fg;
|
/*current_theme->default_color*/0 : *fg;
|
||||||
*bg = *bg < 0 || *bg > 15 ? 0 : *bg;
|
*bg = *bg < 0 || *bg > 15 ? 0 : *bg;
|
||||||
|
|
||||||
if (*fg > 8) *fg -= 8;
|
if (*fg > 8) *fg -= 8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user