From 51a4e8bcb94f50166259e3e741503c4e0b03e7a8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 14 Jan 2001 18:57:39 +0000 Subject: [PATCH] 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 --- src/fe-common/core/formats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 759becdf..901fdb3f 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -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; }