diff options
author | Paul Gilbert | 2011-04-19 19:37:26 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-19 19:37:26 +1000 |
commit | d18f8e8564de7feb890ca8fe183c6508c64acc41 (patch) | |
tree | a7f02bd6a6f336ca04dbec7151e7226c808ff694 /engines | |
parent | 55f1fa8dba78c6c11365b98b358d249209db99fc (diff) | |
download | scummvm-rg350-d18f8e8564de7feb890ca8fe183c6508c64acc41.tar.gz scummvm-rg350-d18f8e8564de7feb890ca8fe183c6508c64acc41.tar.bz2 scummvm-rg350-d18f8e8564de7feb890ca8fe183c6508c64acc41.zip |
TSAGE: Fixed button highlighting in inventory dialog
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/dialogs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/tsage/dialogs.cpp b/engines/tsage/dialogs.cpp index 21970cee24..688f266133 100644 --- a/engines/tsage/dialogs.cpp +++ b/engines/tsage/dialogs.cpp @@ -464,6 +464,7 @@ void InventoryDialog::execute() { GfxElement *hiliteObj; bool lookFlag = false; + _gfxManager.activate(); while (!_vm->getEventManager()->shouldQuit()) { // Get events @@ -511,9 +512,7 @@ void InventoryDialog::execute() { _globals->_events.setCursor(CURSOR_WALK); } - _gfxManager.activate(); hiliteObj->draw(); - _gfxManager.deactivate(); } else if (hiliteObj) { // Inventory item selected InvObject *invObject = static_cast<GfxInvImage *>(hiliteObj)->_invObject; @@ -525,6 +524,8 @@ void InventoryDialog::execute() { } } } + + _gfxManager.deactivate(); } /*--------------------------------------------------------------------------*/ |