diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-16 15:26:49 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-16 15:26:49 +0000 |
commit | 63d221c8d0ce65d3d889377f0acce616dcf586c0 (patch) | |
tree | 540d888328e982b0856226b8bcb9845ae5ec0ed0 /src/graphic | |
parent | cd61419ff834e7aaa66b2850cebd10d0b5d0fe3d (diff) | |
download | mana-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.gz mana-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.bz2 mana-63d221c8d0ce65d3d889377f0acce616dcf586c0.tar.xz mana-63d221c8d0ce65d3d889377f0acce616dcf586c0.zip |
*** empty log message ***
Diffstat (limited to 'src/graphic')
-rw-r--r-- | src/graphic/graphic.cpp | 18 |
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) { |