[Scummvm-cvs-logs] scummvm master -> d18f8e8564de7feb890ca8fe183c6508c64acc41

dreammaster dreammaster at scummvm.org
Tue Apr 19 11:38:51 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d18f8e8564 TSAGE: Fixed button highlighting in inventory dialog


Commit: d18f8e8564de7feb890ca8fe183c6508c64acc41
    https://github.com/scummvm/scummvm/commit/d18f8e8564de7feb890ca8fe183c6508c64acc41
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-04-19T02:37:26-07:00

Commit Message:
TSAGE: Fixed button highlighting in inventory dialog

Changed paths:
    engines/tsage/dialogs.cpp



diff --git a/engines/tsage/dialogs.cpp b/engines/tsage/dialogs.cpp
index 21970ce..688f266 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();
 }
 
 /*--------------------------------------------------------------------------*/






More information about the Scummvm-git-logs mailing list