mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
update_cmd_color() updated colors wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1962 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6e24ac82ed
commit
655e111007
@ -110,9 +110,10 @@ static void update_cmd_color(unsigned char cmd, int *color)
|
||||
if (cmd & LINE_COLOR_BG) {
|
||||
/* set background color */
|
||||
*color &= BGATTR;
|
||||
if ((cmd & LINE_COLOR_DEFAULT) == 0)
|
||||
if ((cmd & LINE_COLOR_DEFAULT) == 0) {
|
||||
*color &= 0x70;
|
||||
*color |= (cmd & 0x0f) << 4;
|
||||
else {
|
||||
} else {
|
||||
*color |= ATTR_RESETBG;
|
||||
if (cmd & LINE_COLOR_BLINK)
|
||||
*color |= ATTR_BLINK;
|
||||
@ -120,9 +121,10 @@ static void update_cmd_color(unsigned char cmd, int *color)
|
||||
} else {
|
||||
/* set foreground color */
|
||||
*color &= FGATTR;
|
||||
if ((cmd & LINE_COLOR_DEFAULT) == 0)
|
||||
if ((cmd & LINE_COLOR_DEFAULT) == 0) {
|
||||
*color &= 0x0f;
|
||||
*color |= cmd & 0x0f;
|
||||
else {
|
||||
} else {
|
||||
*color |= ATTR_RESETFG;
|
||||
if (cmd & LINE_COLOR_BOLD)
|
||||
*color |= ATTR_BOLD;
|
||||
|
Loading…
Reference in New Issue
Block a user