From 0ad03e492ac030193536e3167e8bf428e88cafb3 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 30 Aug 2017 23:11:38 -0500 Subject: SDL: Accept signed values for mouse cursor warping This matches the other ScummVM and SDL APIs for mouse warp. --- backends/platform/sdl/sdl-window.cpp | 2 +- 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. -- cgit v1.2.3