From 16580e53bf71ad99bb7f41186c85981d1c728147 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 5 Oct 2009 19:46:38 +0000 Subject: SCI: kDrawStatus changed, dont call gui if no text received svn-id: r44674 --- engines/sci/gui/gui.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'engines/sci/gui') diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index e7ba5d5d12..8def52c46e 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -234,15 +234,13 @@ void SciGui::textColors(int argc, reg_t *argv) { void SciGui::drawStatus(const char *text, int16 colorPen, int16 colorBack) { GuiPort *oldPort = _gfx->SetPort(_gfx->_menuPort); - if (text) { - _gfx->FillRect(_gfx->_menuRect, 1, colorBack); - _gfx->PenColor(colorPen); - _gfx->MoveTo(0, 1); - _gfx->Draw_String(text); - _gfx->SetPort(oldPort); - // _gfx->ShowBits(*_theMenuBar, 1); - _screen->copyToScreen(); - } + _gfx->FillRect(_gfx->_menuRect, 1, colorBack); + _gfx->PenColor(colorPen); + _gfx->MoveTo(0, 1); + _gfx->Draw_String(text); + _gfx->SetPort(oldPort); + // _gfx->ShowBits(*_theMenuBar, 1); + _screen->copyToScreen(); } void SciGui::drawPicture(GuiResourceId pictureId, uint16 style, uint16 flags, int16 EGApaletteNo) { -- cgit v1.2.3