mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ static int get_attr(int color)
|
||||||
color &= ~0x0f;
|
color &= ~0x0f;
|
||||||
color |= settings_get_int("default_color");
|
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;
|
if ((color & 0x08) || (color & ATTR_BOLD)) attr |= A_BOLD;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue