diff options
author | Johannes Schickel | 2015-02-16 00:49:42 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-02-16 01:03:29 +0100 |
commit | 627d766325e1d435816648f85dbf9c007269b3f2 (patch) | |
tree | 795ea66fd2755e81c7d060ee250fd6f53cf20ade /backends/events | |
parent | b00050439f0f602cb54500f7fda268a7589b4c8b (diff) | |
download | scummvm-rg350-627d766325e1d435816648f85dbf9c007269b3f2.tar.gz scummvm-rg350-627d766325e1d435816648f85dbf9c007269b3f2.tar.bz2 scummvm-rg350-627d766325e1d435816648f85dbf9c007269b3f2.zip |
SDL: Add basic abstraction class for the SDL window.
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); } } |