summaryrefslogtreecommitdiff
path: root/src/graphic
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphic')
-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) {