diff options
author | Martin Kiewitz | 2009-11-12 19:27:26 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-11-12 19:27:26 +0000 |
commit | 67ce14622ad62e9ba874e45772bcbd46079c885d (patch) | |
tree | 578c2ea63fbac165b74b222935bddb230a3fad35 /engines/sci/gui | |
parent | 32ec8647a6717768b92c4c3dff5950c0700417a8 (diff) | |
download | scummvm-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.cpp | 3 |
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); |