mirror of https://github.com/encounter/SDL.git
parent
79510b7569
commit
33ae5e5e99
|
@ -230,9 +230,7 @@ private:
|
||||||
win = GetSDLWindow(winID);
|
win = GetSDLWindow(winID);
|
||||||
|
|
||||||
// Simple relative mode support for mouse.
|
// Simple relative mode support for mouse.
|
||||||
if ((SDL_GetMouse()->relative_mode ||
|
if (SDL_GetMouse()->relative_mode) {
|
||||||
(win->flags & SDL_WINDOW_INPUT_GRABBED)) &&
|
|
||||||
(win->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
|
||||||
int winWidth, winHeight, winPosX, winPosY;
|
int winWidth, winHeight, winPosX, winPosY;
|
||||||
SDL_GetWindowSize(win, &winWidth, &winHeight);
|
SDL_GetWindowSize(win, &winWidth, &winHeight);
|
||||||
SDL_GetWindowPosition(win, &winPosX, &winPosY);
|
SDL_GetWindowPosition(win, &winPosX, &winPosY);
|
||||||
|
|
Loading…
Reference in New Issue