summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-12-19 17:21:34 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-12-19 17:21:34 +0000
commita432321fb91bc0afbe802878fcd45adcee946a5b (patch)
tree6222ae0392064cc0250d41bc89bfc14b38892395 /src/gui/chat.cpp
parentdd06564ec071884d1980d74c96dc136fc6205e19 (diff)
downloadmana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.gz
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.bz2
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.xz
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.zip
killed a few warnings about depcrated functions. mostly textprintf
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index f9c87a55..76d7ff0e 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -131,19 +131,19 @@ void Chat::chat_draw(BITMAP * bmp, int n, FONT * font) {
switch (line.own) {
case BY_GM :
- textprintf(bmp, font, 1, y, COLOR_BLUE, "Global announcement: ");
- textprintf(bmp, font, TEXT_GETWIDTH("Global announcement: "), y, COLOR_GREEN, line.text.c_str());
+ textprintf_ex(bmp, font, 1, y, COLOR_BLUE, -1, "Global announcement: ");
+ textprintf_ex(bmp, font, TEXT_GETWIDTH("Global announcement: "), y, -1, COLOR_GREEN, line.text.c_str());
break;
case BY_PLAYER :
- textprintf(bmp, font, 1, y, COLOR_YELLOW, line.nick.c_str());
- textprintf(bmp, font, line.width, y, COLOR_WHITE, line.text.c_str());
+ textprintf_ex(bmp, font, 1, y, COLOR_YELLOW, -1, line.nick.c_str());
+ textprintf_ex(bmp, font, line.width, y, COLOR_WHITE, -1, line.text.c_str());
break;
case BY_OTHER :
- textprintf(bmp, font, 1, y, COLOR_GREEN, line.nick.c_str());
- textprintf(bmp, font, line.width, y, COLOR_WHITE, line.text.c_str());
+ textprintf_ex(bmp, font, 1, y, COLOR_GREEN, -1, line.nick.c_str());
+ textprintf_ex(bmp, font, line.width, y, COLOR_WHITE, -1, line.text.c_str());
break;
default :
- textprintf(bmp, font, 1, y, COLOR_LIGHTBLUE, line.text.c_str());
+ textprintf_ex(bmp, font, 1, y, COLOR_LIGHTBLUE, -1, line.text.c_str());
}
if (i>=n) {