aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting
diff options
context:
space:
mode:
authorRichieSams2015-01-15 00:37:39 -0600
committerRichieSams2015-01-15 00:40:37 -0600
commit4f28cec6ac7ef68df373f6c1139a852150789851 (patch)
tree5800bb4976f0f01f316105ce7f5d9c7268450b0d /engines/zvision/scripting
parent28e27ea1d94f1df4c8e68216c086cb57c396ccd8 (diff)
downloadscummvm-rg350-4f28cec6ac7ef68df373f6c1139a852150789851.tar.gz
scummvm-rg350-4f28cec6ac7ef68df373f6c1139a852150789851.tar.bz2
scummvm-rg350-4f28cec6ac7ef68df373f6c1139a852150789851.zip
ZVISION: Keep the hand cursor during lever movement
We have to explicitly set the cursor each call otherwise the cursor will be reset to the idle cursor. Addresses part of bug #6761
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r--engines/zvision/scripting/controls/lever_control.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/controls/lever_control.cpp b/engines/zvision/scripting/controls/lever_control.cpp
index bef51f0e91..249c4c6f9b 100644
--- a/engines/zvision/scripting/controls/lever_control.cpp
+++ b/engines/zvision/scripting/controls/lever_control.cpp
@@ -236,6 +236,8 @@ bool LeverControl::onMouseMove(const Common::Point &screenSpacePos, const Common
}
}
}
+ _engine->getCursorManager()->changeCursor(_cursor);
+ cursorWasChanged = true;
} else if (_frameInfo[_currentFrame].hotspot.contains(backgroundImageSpacePos)) {
_engine->getCursorManager()->changeCursor(_cursor);
cursorWasChanged = true;