diff options
author | Strangerke | 2015-11-28 02:17:05 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:43 +0100 |
commit | c485d9e8a616d475f9155de084012062fe9e5dc8 (patch) | |
tree | 950e3b117c445ead379f323f99e9ade12335b671 /engines/lab/processroom.cpp | |
parent | ff2def7da187c5160443fc6166728f1fc59ff66e (diff) | |
download | scummvm-rg350-c485d9e8a616d475f9155de084012062fe9e5dc8.tar.gz scummvm-rg350-c485d9e8a616d475f9155de084012062fe9e5dc8.tar.bz2 scummvm-rg350-c485d9e8a616d475f9155de084012062fe9e5dc8.zip |
LAB: Some rework related to the mouse code
Diffstat (limited to 'engines/lab/processroom.cpp')
-rw-r--r-- | engines/lab/processroom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/processroom.cpp b/engines/lab/processroom.cpp index ccce27adf3..37c21d8399 100644 --- a/engines/lab/processroom.cpp +++ b/engines/lab/processroom.cpp @@ -259,7 +259,7 @@ bool processArrow(uint16 *direction, uint16 Arrow) { /*****************************************************************************/ /* Sets the current close up data. */ /*****************************************************************************/ -void setCurClose(uint16 x, uint16 y, CloseDataPtr *cptr, bool useAbsoluteCoords) { +void setCurClose(Common::Point pos, CloseDataPtr *cptr, bool useAbsoluteCoords) { ViewData *VPtr; CloseDataPtr LCPtr; uint16 x1, y1, x2, y2; @@ -283,7 +283,7 @@ void setCurClose(uint16 x, uint16 y, CloseDataPtr *cptr, bool useAbsoluteCoords) y2 = scaleY(LCPtr->y2); } - if (x >= x1 && y >= y1 && x <= x2 && y <= y2 && LCPtr->GraphicName) { + if (pos.x >= x1 && pos.y >= y1 && pos.x <= x2 && pos.y <= y2 && LCPtr->GraphicName) { *cptr = LCPtr; return; } @@ -640,7 +640,7 @@ static bool doActionRuleSub(int16 action, int16 roomNum, CloseDataPtr LCPtr, Clo /*****************************************************************************/ /* Goes through the rules if an action is taken. */ /*****************************************************************************/ -bool doActionRule(int16 x, int16 y, int16 action, int16 roomNum, CloseDataPtr *LCPtr) { +bool doActionRule(Common::Point pos, int16 action, int16 roomNum, CloseDataPtr *LCPtr) { CloseDataPtr TLCPtr; if (roomNum) @@ -648,7 +648,7 @@ bool doActionRule(int16 x, int16 y, int16 action, int16 roomNum, CloseDataPtr *L else NewFileName = CurFileName; - TLCPtr = getObject(x, y, *LCPtr); + TLCPtr = getObject(pos.x, pos.y, *LCPtr); if (doActionRuleSub(action, roomNum, TLCPtr, LCPtr, false)) return true; |