aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-06 21:40:02 +0300
committerEugene Sandulenko2013-09-06 21:40:02 +0300
commitec650efb477d9b5df159d37a6b16d628166bab9c (patch)
treefd3e754e32c654c1d3aa9a426ff77b16d856617b
parent6226b5862d2d3800a88985ed83946ea9e941a556 (diff)
downloadscummvm-rg350-ec650efb477d9b5df159d37a6b16d628166bab9c.tar.gz
scummvm-rg350-ec650efb477d9b5df159d37a6b16d628166bab9c.tar.bz2
scummvm-rg350-ec650efb477d9b5df159d37a6b16d628166bab9c.zip
FULLPIPE: Fix mouse event handling
-rw-r--r--engines/fullpipe/fullpipe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp
index bc8a4ae320..11808e95c2 100644
--- a/engines/fullpipe/fullpipe.cpp
+++ b/engines/fullpipe/fullpipe.cpp
@@ -279,7 +279,7 @@ void FullpipeEngine::updateEvents() {
break;
case Common::EVENT_MOUSEMOVE:
if (_recordEvents) {
- ex = new ExCommand(0, 17, 31, event.mouse.x, event.mouse.x, 0, 1, 0, 0, 0);
+ ex = new ExCommand(0, 17, 31, event.mouse.x, event.mouse.y, 0, 1, 0, 0, 0);
ex->_excFlags |= 3;
ex->handle();
}
@@ -291,7 +291,7 @@ void FullpipeEngine::updateEvents() {
break;
case Common::EVENT_RBUTTONDOWN:
if (!_inputArFlag && (_updateTicks - _lastInputTicks) >= 2) {
- ex = new ExCommand(0, 17, 107, event.mouse.x, event.mouse.x, 0, 1, 0, 0, 0);
+ ex = new ExCommand(0, 17, 107, event.mouse.x, event.mouse.y, 0, 1, 0, 0, 0);
ex->_excFlags |= 3;
_lastInputTicks = _updateTicks;
ex->handle();
@@ -299,7 +299,7 @@ void FullpipeEngine::updateEvents() {
break;
case Common::EVENT_LBUTTONDOWN:
if (!_inputArFlag && (_updateTicks - _lastInputTicks) >= 2) {
- ex = new ExCommand(0, 17, 29, event.mouse.x, event.mouse.x, 0, 1, 0, 0, 0);
+ ex = new ExCommand(0, 17, 29, event.mouse.x, event.mouse.y, 0, 1, 0, 0, 0);
ex->_sceneClickX = _sceneRect.left + ex->_x;
ex->_sceneClickY = _sceneRect.top + ex->_y;