aboutsummaryrefslogtreecommitdiff
path: root/simon/simon.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-12-08 03:34:46 +0000
committerTravis Howell2005-12-08 03:34:46 +0000
commit0db98bd46dd226e833215c069ff16aefe8f9bdc5 (patch)
tree23a894f3faa1fcc413c4ebd9c17e9a3db2f063ce /simon/simon.cpp
parent896a8d819118eaa2e666f88c5a142224305f04e9 (diff)
downloadscummvm-rg350-0db98bd46dd226e833215c069ff16aefe8f9bdc5.tar.gz
scummvm-rg350-0db98bd46dd226e833215c069ff16aefe8f9bdc5.tar.bz2
scummvm-rg350-0db98bd46dd226e833215c069ff16aefe8f9bdc5.zip
Correct mouse position in FF.
svn-id: r19758
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r--simon/simon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index f70f319c89..0f58f057cb 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -1689,13 +1689,13 @@ void SimonEngine::handle_mouse_moved() {
if (_mouseX >= 32768)
_mouseX = 0;
- if (_mouseX >= 638 / 2)
- _mouseX = 638 / 2;
+ if (_mouseX >= _screenWidth - 1)
+ _mouseX = _screenWidth - 1;
if (_mouseY >= 32768)
_mouseY = 0;
- if (_mouseY >= 199)
- _mouseY = 199;
+ if (_mouseY >= _screenHeight - 1)
+ _mouseY = _screenHeight - 1;
if (_hitAreaUnk4) {
uint id = 101;