diff options
author | Johannes Schickel | 2015-01-24 23:42:12 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-01-25 18:57:38 +0100 |
commit | 3a2db0135d93b5f12fd42f04db3b6ad9d40834d3 (patch) | |
tree | 5b021b6b70148fb60bcaa08be7f68b427b730d09 /backends/events/symbiansdl/symbiansdl-events.cpp | |
parent | 4e1ffc9434f771d3f43e66104adeea9e0166123c (diff) | |
download | scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.tar.gz scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.tar.bz2 scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.zip |
SDL: Refactor WM specific functionality into SdlGraphicsManager.
Diffstat (limited to 'backends/events/symbiansdl/symbiansdl-events.cpp')
-rw-r--r-- | backends/events/symbiansdl/symbiansdl-events.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/events/symbiansdl/symbiansdl-events.cpp b/backends/events/symbiansdl/symbiansdl-events.cpp index 36018f1024..97361e3df0 100644 --- a/backends/events/symbiansdl/symbiansdl-events.cpp +++ b/backends/events/symbiansdl/symbiansdl-events.cpp @@ -133,7 +133,9 @@ bool SymbianSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { _currentZone = 0; event.type = Common::EVENT_MOUSEMOVE; processMouseEvent(event, _mouseXZone[_currentZone], _mouseYZone[_currentZone]); - SDL_WarpMouse(event.mouse.x, event.mouse.y); + if (_graphicsManager) { + _graphicsManager->warpMouseInWindow(event.mouse.x, event.mouse.y); + } } return true; |