1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Use | instead of + when playing with ansi colors. Doesn't change

anything really, except if someone now wants to change ansi colors to
some bright colors it's easier..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1118 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-14 18:57:39 +00:00 committed by cras
parent 6f370cf6ff
commit 51a4e8bcb9

View File

@ -525,10 +525,10 @@ static char *get_ansi_color(THEME_REC *theme, char *str,
break;
default:
if (num >= 30 && num <= 37)
fg = (fg & 0xf8) + ansitab[num-30];
fg = (fg & 0xf8) | ansitab[num-30];
if (num >= 40 && num <= 47) {
if (bg == -1) bg = 0;
bg = (bg & 0xf8) + ansitab[num-40];
bg = (bg & 0xf8) | ansitab[num-40];
}
break;
}