aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-08-04 16:33:36 +0700
committerMarisa-Chan2014-08-04 16:33:36 +0700
commit73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950 (patch)
tree91d0089d0ddec2f2495ff8d864c90582499bfabf
parentd7d058cd60aae2c898f285b183416d1393c4a7ad (diff)
downloadscummvm-rg350-73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950.tar.gz
scummvm-rg350-73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950.tar.bz2
scummvm-rg350-73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950.zip
ZVISION: Don't focus on already focused control
-rw-r--r--engines/zvision/scripting/script_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index 6a9398d356..380141490a 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -361,6 +361,8 @@ Control *ScriptManager::getControl(uint32 key) {
void ScriptManager::focusControl(uint32 key) {
if (!_activeControls)
return;
+ if (_currentlyFocusedControl == key)
+ return;
for (ControlList::iterator iter = _activeControls->begin(); iter != _activeControls->end(); ++iter) {
uint32 controlKey = (*iter)->getKey();