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