From 316d62c9909a67ab066f1d5795209f8b6b70cb60 Mon Sep 17 00:00:00 2001 From: stpohle Date: Wed, 31 Dec 2003 01:03:52 +0000 Subject: [PATCH] chat is back working again.. needed to change the set fontcolor calls. --- src/chat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/chat.c b/src/chat.c index a9b4cf8..2a15470 100644 --- a/src/chat.c +++ b/src/chat.c @@ -214,7 +214,6 @@ chat_loop (SDL_Event * event) p1 = p2 = 0; maxchar = (chat.window.w - 4) / font[0].size.x; if (chat.lineschanged) { -// font_setcolor (255, 255, 255, 0); y = chat.window.y + 4; l = chat.startline; while (y < (chat.window.y + chat.window.h - 32) && chat.lines[l].text[0] != 0) { @@ -225,7 +224,7 @@ chat_loop (SDL_Event * event) for (p1 = 0; (p1 < maxchar && chat.lines[l].text[p2] != 0); p1++) text[p1] = chat.lines[l].text[p2++]; text[p1] = 0; -// font_draw (chat.window.x + 4, y, text, 0); + font_draw (chat.window.x + 4, y, text, 0, COLOR_white); if (chat.lines[l].text[p2] == 0) { // the end of the line l++; p2 = 0; @@ -253,7 +252,7 @@ chat_loop (SDL_Event * event) for (p1 = 0; (p1 < maxchar && chat.input.text[p2] != 0); p1++) text[p1] = chat.input.text[p2++]; text[p1] = 0; -// font_draw (chat.window.x + 4, (chat.window.y + chat.window.h) - 4 - font[0].size.y, -// text, 0); + font_draw (chat.window.x + 4, (chat.window.y + chat.window.h) - 4 - font[0].size.y, + text, 0, COLOR_white); } };