# HG changeset patch # User Teemu Piippo # Date 1437701477 -10800 # Node ID 3492f8f0ee7e111e148afc7b43e1cc77923abbf6 # Parent 71f1cd8154a9233bfc14f361b8f546852fcb2088 And another refactor on that.. diff -r 71f1cd8154a9 -r 3492f8f0ee7e sources/interface.cpp --- a/sources/interface.cpp Fri Jul 24 04:30:17 2015 +0300 +++ b/sources/interface.cpp Fri Jul 24 04:31:17 2015 +0300 @@ -278,7 +278,7 @@ mvaddch (y, x, char (byte)); ++x; } - else if (byte >= RLINE_ON_COLOR and byte < RLINE_ON_BOLD) + else if (byte >= RLINE_ON_COLOR and byte < (RLINE_ON_COLOR + 16)) { auto attrfunction = (byte < RLINE_OFF_COLOR ? &attron : &attroff); (*attrfunction) (color_pair (Color ((byte - RLINE_ON_COLOR) & 7), DEFAULT));