aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-05 19:46:38 +0000
committerMartin Kiewitz2009-10-05 19:46:38 +0000
commit16580e53bf71ad99bb7f41186c85981d1c728147 (patch)
treed5bdd4dd124cc9d587f21ba4399ddf60bac99c6f /engines/sci/gui
parente6b1a0cb4b3f26cdf332d9981a858de86b02d96d (diff)
downloadscummvm-rg350-16580e53bf71ad99bb7f41186c85981d1c728147.tar.gz
scummvm-rg350-16580e53bf71ad99bb7f41186c85981d1c728147.tar.bz2
scummvm-rg350-16580e53bf71ad99bb7f41186c85981d1c728147.zip
SCI: kDrawStatus changed, dont call gui if no text received
svn-id: r44674
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui.cpp16
1 files changed, 7 insertions, 9 deletions
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) {