sources/interface.cpp

changeset 48
02009f1ec2b7
parent 47
35b968619b0c
child 49
9e0f26f020e1
--- 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;

mercurial