1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Simplify.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4353 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2006-09-17 12:32:40 +00:00 committed by exg
parent 8264b65939
commit d5c60cec4f

View File

@ -279,7 +279,7 @@ static int get_attr(int color)
color &= ~0x0f;
color |= settings_get_int("default_color");
}
attr = (COLOR_PAIR((color&7) + (color&0x70)/2));
attr = COLOR_PAIR((color&7) | ((color&0x70)>>1));
}
if ((color & 0x08) || (color & ATTR_BOLD)) attr |= A_BOLD;