summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 15:26:49 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 15:26:49 +0000
commit63d221c8d0ce65d3d889377f0acce616dcf586c0 (patch)
tree540d888328e982b0856226b8bcb9845ae5ec0ed0 /src/graphic/graphic.cpp
parentcd61419ff834e7aaa66b2850cebd10d0b5d0fe3d (diff)
downloadmana-client-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.gz
mana-client-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.bz2
mana-client-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.xz
mana-client-63d221c8d0ce65d3d889377f0acce616dcf586c0.zip
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index c1cde98a..71fc5a75 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -463,20 +463,18 @@ void Engine::draw()
Being *being = (*beingIterator);
if (being->speech != NULL) {
+ guiGraphics->_beginDraw();
if (being->speech_color == makecol(255, 255, 255)) {
- textprintf_centre_ex(buffer, font,
- being->text_x,
- being->text_y - 60,
- being->speech_color, -1,
- "%s", being->speech);
+ guiGraphics->drawText(being->speech,
+ being->text_x + 16, being->text_y - 60,
+ gcn::Graphics::CENTER);
}
else {
- textprintf_centre_ex(buffer, font,
- being->text_x + 60,
- being->text_y,
- being->speech_color, -1,
- "%s", being->speech);
+ guiGraphics->drawText(being->speech,
+ being->text_x + 60, being->text_y,
+ gcn::Graphics::CENTER);
}
+ guiGraphics->_endDraw();
being->speech_time--;
if (being->speech_time == 0) {