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
This commit is contained in:
parent
750d0072ce
commit
1880c8739b
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue