diff options
author | Travis Howell | 2005-12-08 03:34:46 +0000 |
---|---|---|
committer | Travis Howell | 2005-12-08 03:34:46 +0000 |
commit | 0db98bd46dd226e833215c069ff16aefe8f9bdc5 (patch) | |
tree | 23a894f3faa1fcc413c4ebd9c17e9a3db2f063ce /simon | |
parent | 896a8d819118eaa2e666f88c5a142224305f04e9 (diff) | |
download | scummvm-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')
-rw-r--r-- | simon/simon.cpp | 8 |
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; |