always window grab in relative mouse mode

master
Lee Salzman 2013-03-06 19:34:50 +02:00
parent b163a61cbe
commit bd0173f94d
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ void inputgrab(bool on)
{
if(SDL_SetRelativeMouseMode(SDL_TRUE) >= 0)
{
SDL_SetWindowGrab(screen, SDL_GetWindowFlags(screen) & SDL_WINDOW_FULLSCREEN ? SDL_FALSE : SDL_TRUE);
SDL_SetWindowGrab(screen, SDL_TRUE);
relativemouse = true;
}
else