From 63d221c8d0ce65d3d889377f0acce616dcf586c0 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 16 Jan 2005 15:26:49 +0000 Subject: *** empty log message *** --- src/graphic/graphic.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/graphic/graphic.cpp') 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) { -- cgit v1.2.3-70-g09d2