And another refactor on that..

Fri, 24 Jul 2015 04:31:17 +0300

author
Teemu Piippo <tsapii@utu.fi>
date
Fri, 24 Jul 2015 04:31:17 +0300
changeset 102
3492f8f0ee7e
parent 101
71f1cd8154a9
child 105
b4466472aecd

And another refactor on that..

sources/interface.cpp file | annotate | diff | comparison | revisions
--- 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));

mercurial