mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-20 11:03:09 +00:00
Disable the warning if the mouse grab request fails
This fails on some SDL drivers and just spams the console.
This commit is contained in:
parent
9e15847083
commit
1b1787bb50
1 changed files with 1 additions and 2 deletions
|
@ -308,8 +308,7 @@ void GLimp_GrabInput(int flags) {
|
|||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
SDL_ShowCursor(flags & GRAB_HIDECURSOR ? SDL_DISABLE : SDL_ENABLE);
|
||||
if (SDL_SetRelativeMouseMode(flags & GRAB_HIDECURSOR ? SDL_TRUE : SDL_FALSE))
|
||||
common->Warning("Failed to set relative mouse movement mode");
|
||||
SDL_SetRelativeMouseMode(flags & GRAB_HIDECURSOR ? SDL_TRUE : SDL_FALSE);
|
||||
SDL_SetWindowGrab(window, grab ? SDL_TRUE : SDL_FALSE);
|
||||
#else
|
||||
SDL_ShowCursor(flags & GRAB_HIDECURSOR ? SDL_DISABLE : SDL_ENABLE);
|
||||
|
|
Loading…
Reference in a new issue