mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
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
@ -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…
x
Reference in New Issue
Block a user