mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4353 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8264b65939
commit
d5c60cec4f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user