mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
Remove duplicate code, for clipping of mouse position.
svn-id: r26238
This commit is contained in:
parent
96823c885f
commit
3e85ecbe5f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user