aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-11-12 19:27:26 +0000
committerMartin Kiewitz2009-11-12 19:27:26 +0000
commit67ce14622ad62e9ba874e45772bcbd46079c885d (patch)
tree578c2ea63fbac165b74b222935bddb230a3fad35 /engines/sci/gui
parent32ec8647a6717768b92c4c3dff5950c0700417a8 (diff)
downloadscummvm-rg350-67ce14622ad62e9ba874e45772bcbd46079c885d.tar.gz
scummvm-rg350-67ce14622ad62e9ba874e45772bcbd46079c885d.tar.bz2
scummvm-rg350-67ce14622ad62e9ba874e45772bcbd46079c885d.zip
SCI/newgui: SciGuiMenu forgot to reset memory handles after restoring
svn-id: r45869
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_menu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/gui/gui_menu.cpp b/engines/sci/gui/gui_menu.cpp
index 0ce5b35768..2406e0ef19 100644
--- a/engines/sci/gui/gui_menu.cpp
+++ b/engines/sci/gui/gui_menu.cpp
@@ -51,6 +51,7 @@ SciGuiMenu::SciGuiMenu(SegManager *segMan, SciGuiGfx *gfx, SciGuiText *text, Sci
_curItemId = 1;
_menuSaveHandle = NULL_REG;
+ _barSaveHandle = NULL_REG;
_oldPort = NULL;
}
@@ -389,11 +390,13 @@ reg_t SciGuiMenu::select(reg_t eventObject) {
if (!_menuSaveHandle.isNull()) {
_gfx->BitsRestore(_menuSaveHandle);
_gfx->BitsShow(_menuRect);
+ _menuSaveHandle = NULL_REG;
// TODO: Change to ReAnimate()
}
if (!_barSaveHandle.isNull()) {
_gfx->BitsRestore(_barSaveHandle);
_gfx->BitsShow(_gfx->_menuBarRect);
+ _barSaveHandle = NULL_REG;
}
if (_oldPort)
_gfx->SetPort(_oldPort);