diff options
author | Travis Howell | 2007-03-19 00:24:58 +0000 |
---|---|---|
committer | Travis Howell | 2007-03-19 00:24:58 +0000 |
commit | 3e85ecbe5fd184c21cf3734912b1c9a95ef13cd2 (patch) | |
tree | 4cf2f3dc57308ea3bb8396896e4194f45b22efc9 /engines/agos | |
parent | 96823c885fa1d7da93e7fc64b37d8e2110d22882 (diff) | |
download | scummvm-rg350-3e85ecbe5fd184c21cf3734912b1c9a95ef13cd2.tar.gz scummvm-rg350-3e85ecbe5fd184c21cf3734912b1c9a95ef13cd2.tar.bz2 scummvm-rg350-3e85ecbe5fd184c21cf3734912b1c9a95ef13cd2.zip |
Remove duplicate code, for clipping of mouse position.
svn-id: r26238
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/cursor.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/engines/agos/cursor.cpp b/engines/agos/cursor.cpp index c2fd9a214f..efed42202b 100644 --- a/engines/agos/cursor.cpp +++ b/engines/agos/cursor.cpp @@ -309,21 +309,8 @@ void AGOSEngine::handleMouseMoved() { } CursorMan.showMouse(true); - _mouse = _system->getEventManager()->getMousePos(); - // Clip the mouse to the screen - // TODO this should not be necessary - if (_mouse.x <= 0) - _mouse.x = 0; - if (_mouse.x >= _screenWidth - 1) - _mouse.x = _screenWidth - 1; - - if (_mouse.y <= 0) - _mouse.y = 0; - if (_mouse.y >= _screenHeight - 1) - _mouse.y = _screenHeight - 1; - if (_defaultVerb) { uint id = 101; if (_mouse.y >= 136) |