aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-11 10:35:12 +0000
committerFilippos Karapetis2007-05-11 10:35:12 +0000
commit1880c8739b3ccce65dc709cf1db67a9068270c89 (patch)
tree540baa47ade09ddf8a2951e80da37c3bef1ad739
parent750d0072ce7c065f2a2df154f1ea2ffee5c201ac (diff)
downloadscummvm-rg350-1880c8739b3ccce65dc709cf1db67a9068270c89.tar.gz
scummvm-rg350-1880c8739b3ccce65dc709cf1db67a9068270c89.tar.bz2
scummvm-rg350-1880c8739b3ccce65dc709cf1db67a9068270c89.zip
Disable the status text in IHNM when the main panel is not shown. Fixes a crash when hovering over a character in the character selection screen
svn-id: r26801
-rw-r--r--engines/saga/interface.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 60974f4425..19a68d70a4 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -536,6 +536,10 @@ void Interface::setStatusText(const char *text, int statusColor) {
assert(text != NULL);
assert(strlen(text) < STATUS_TEXT_LEN);
+ // Disable the status text in IHNM when the main panel is not shown (i.e. when the screen is full)
+ if (_vm->getGameType() == GType_IHNM && !(_panelMode == kPanelMain || _panelMode == kPanelMap))
+ return;
+
if (_vm->_render->getFlags() & (RF_PLACARD | RF_MAP))
return;
@@ -1525,8 +1529,9 @@ void Interface::drawStatusBar() {
backBuffer = _vm->_gfx->getBackBuffer();
- // Disable this for IHNM for now, since that game uses the full screen
- // in some cases.
+ // Disable the status bar in IHNM when the main panel is not shown (i.e. when the screen is full)
+ if (_vm->getGameType() == GType_IHNM && !(_panelMode == kPanelMain || _panelMode == kPanelMap))
+ return;
// Erase background of status bar
rect.left = _vm->getDisplayInfo().statusXOffset;