# HG changeset patch # User Teemu Piippo # Date 1418675774 -7200 # Node ID 02009f1ec2b72621d88a951b7efe818fe8ed6aa5 # Parent 35b968619b0c6e5831371f2fe627b0c90c436384 - cleanup, fixed red text not rendering diff -r 35b968619b0c -r 02009f1ec2b7 sources/coloredline.cpp --- a/sources/coloredline.cpp Mon Dec 15 22:35:17 2014 +0200 +++ b/sources/coloredline.cpp Mon Dec 15 22:36:14 2014 +0200 @@ -147,6 +147,5 @@ if (length() % cols != 0) rows++; - print_to ("logfile", "Line of %1 chars with %2 cols is %3 rows\n", length(), cols, max (rows, 1)); return max (rows, 1); } diff -r 35b968619b0c -r 02009f1ec2b7 sources/interface.cpp --- a/sources/interface.cpp Mon Dec 15 22:35:17 2014 +0200 +++ b/sources/interface.cpp Mon Dec 15 22:36:14 2014 +0200 @@ -249,7 +249,7 @@ // ------------------------------------------------------------------------------------------------- // static FUNCTION -inteface_nicklist_width() -> int +interface_nicklist_width() -> int { // Allocate at least 12 characters, at most 24 characters, for the nicklist. If we cannot // afford that (o_O) then we probably shouldn't draw the nicklist at all I think. @@ -290,6 +290,7 @@ else switch (byte) { case RLINE_ON_BLACK: + case RLINE_ON_RED: case RLINE_ON_GREEN: case RLINE_ON_YELLOW: case RLINE_ON_BLUE: @@ -300,6 +301,7 @@ break; case RLINE_OFF_BLACK: + case RLINE_OFF_RED: case RLINE_OFF_GREEN: case RLINE_OFF_YELLOW: case RLINE_OFF_BLUE: @@ -333,7 +335,7 @@ g_outputScroll = clamp (g_outputScroll, 0, g_output.size() - 1); int height = LINES - 3; - int width = COLS - inteface_nicklist_width(); + int width = COLS - interface_nicklist_width(); int printOffset = 0; int end = g_output.size() - 1 - g_outputScroll; int start = end; @@ -404,7 +406,7 @@ static FUNCTION interface_render_nicklist() -> void { - int width = inteface_nicklist_width(); + int width = interface_nicklist_width(); int height = LINES- 3; int y = 1; int x = COLS - width;