diff options
Diffstat (limited to 'backends/events')
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 4 | ||||
-rw-r--r-- | backends/events/symbiansdl/symbiansdl-events.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 21b0fbad32..18fe5453f8 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -183,7 +183,7 @@ void SdlEventSource::handleKbdMouse() { } if (_graphicsManager) { - _graphicsManager->warpMouseInWindow((Uint16)_km.x, (Uint16)_km.y); + _graphicsManager->getWindow()->warpMouseInWindow((Uint16)_km.x, (Uint16)_km.y); } } } @@ -471,7 +471,7 @@ bool SdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) { // Ctrl-m toggles mouse capture if (event.kbd.hasFlags(Common::KBD_CTRL) && ev.key.keysym.sym == 'm') { if (_graphicsManager) { - _graphicsManager->toggleMouseGrab(); + _graphicsManager->getWindow()->toggleMouseGrab(); } return false; } diff --git a/backends/events/symbiansdl/symbiansdl-events.cpp b/backends/events/symbiansdl/symbiansdl-events.cpp index 97361e3df0..b0d2c25302 100644 --- a/backends/events/symbiansdl/symbiansdl-events.cpp +++ b/backends/events/symbiansdl/symbiansdl-events.cpp @@ -134,7 +134,7 @@ bool SymbianSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { event.type = Common::EVENT_MOUSEMOVE; processMouseEvent(event, _mouseXZone[_currentZone], _mouseYZone[_currentZone]); if (_graphicsManager) { - _graphicsManager->warpMouseInWindow(event.mouse.x, event.mouse.y); + _graphicsManager->getWindow()->warpMouseInWindow(event.mouse.x, event.mouse.y); } } |