Fix mouse being grabbed even when not used

The other way around this time.
This commit is contained in:
Louis-Antoine 2020-01-05 18:39:16 +01:00
parent 88c8049c77
commit e847777a35

View file

@ -388,7 +388,7 @@ void I_UpdateMouseGrab(void)
{
if (SDL_WasInit(SDL_INIT_VIDEO) == SDL_INIT_VIDEO && window != NULL
&& SDL_GetMouseFocus() == window && SDL_GetKeyboardFocus() == window
&& !IGNORE_MOUSE)
&& USE_MOUSEINPUT && !IGNORE_MOUSE)
SDLdoGrabMouse();
}