chat is back working again.. needed to change the set fontcolor calls.

origin
stpohle 22 years ago
parent 7c048bf1e6
commit 316d62c990

@ -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);
}
};

Loading…
Cancel
Save