diff options
author | Colin Snover | 2017-08-30 23:11:38 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-15 13:24:20 -0500 |
commit | 0ad03e492ac030193536e3167e8bf428e88cafb3 (patch) | |
tree | a534f9703db19f1ca66f2483004ab4e9d77c0054 | |
parent | 969dd565a135664dcf341af9132dd97b6ec357e9 (diff) | |
download | scummvm-rg350-0ad03e492ac030193536e3167e8bf428e88cafb3.tar.gz scummvm-rg350-0ad03e492ac030193536e3167e8bf428e88cafb3.tar.bz2 scummvm-rg350-0ad03e492ac030193536e3167e8bf428e88cafb3.zip |
SDL: Accept signed values for mouse cursor warping
This matches the other ScummVM and SDL APIs for mouse warp.
-rw-r--r-- | backends/platform/sdl/sdl-window.cpp | 2 | ||||
-rw-r--r-- | backends/platform/sdl/sdl-window.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/sdl-window.cpp b/backends/platform/sdl/sdl-window.cpp index 75cf813638..16b978dca4 100644 --- a/backends/platform/sdl/sdl-window.cpp +++ b/backends/platform/sdl/sdl-window.cpp @@ -153,7 +153,7 @@ bool SdlWindow::hasMouseFocus() const { #endif } -void SdlWindow::warpMouseInWindow(uint x, uint y) { +void SdlWindow::warpMouseInWindow(int x, int y) { #if SDL_VERSION_ATLEAST(2, 0, 0) if (_window && hasMouseFocus()) { SDL_WarpMouseInWindow(_window, x, y); diff --git a/backends/platform/sdl/sdl-window.h b/backends/platform/sdl/sdl-window.h index d75e811f56..fb7607be55 100644 --- a/backends/platform/sdl/sdl-window.h +++ b/backends/platform/sdl/sdl-window.h @@ -58,7 +58,7 @@ public: /** * Warp the mouse to the specified position in window coordinates. */ - void warpMouseInWindow(uint x, uint y); + void warpMouseInWindow(int x, int y); /** * Iconifies the window. |