diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2006-09-17 12:32:40 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2006-09-17 12:32:40 +0000 |
commit | d5c60cec4f772f72296c12c3855948305fa2a965 (patch) | |
tree | 5f9dd949b4776fe21434aa6e1c5fe0e779a60500 /src | |
parent | 8264b65939fcfca0020da485ee76d3a280a99625 (diff) | |
download | irssi-d5c60cec4f772f72296c12c3855948305fa2a965.zip |
Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4353 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/term-curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/term-curses.c b/src/fe-text/term-curses.c index e0c991be..cd088705 100644 --- a/src/fe-text/term-curses.c +++ b/src/fe-text/term-curses.c @@ -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; |