[Scummvm-cvs-logs] SF.net SVN: scummvm: [26801] scummvm/trunk/engines/saga/interface.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri May 11 12:35:14 CEST 2007
Revision: 26801
http://scummvm.svn.sourceforge.net/scummvm/?rev=26801&view=rev
Author: thebluegr
Date: 2007-05-11 03:35:12 -0700 (Fri, 11 May 2007)
Log Message:
-----------
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
Modified Paths:
--------------
scummvm/trunk/engines/saga/interface.cpp
Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp 2007-05-10 19:00:18 UTC (rev 26800)
+++ scummvm/trunk/engines/saga/interface.cpp 2007-05-11 10:35:12 UTC (rev 26801)
@@ -536,6 +536,10 @@
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 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list