mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
6f370cf6ff
commit
51a4e8bcb9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user