From: havoc Date: Fri, 29 Apr 2011 08:09:43 +0000 (+0000) Subject: changed vid_hasfocus check to use SDL_APPINPUTFOCUS only, not checking X-Git-Tag: xonotic-v0.5.0~243 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05e8b127c8e131d2c49aa4695352ac5e6b8c48c8;p=xonotic%2Fdarkplaces.git changed vid_hasfocus check to use SDL_APPINPUTFOCUS only, not checking SDL_APPMOUSEFOCUS git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11083 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=f9555b33708bfd874a5ea66f7bf4e04057b70438 --- diff --git a/vid_sdl.c b/vid_sdl.c index 396c23f5..76cc2ac4 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2471,7 +2471,7 @@ void VID_Finish (void) appstate = SDL_GetAppState(); vid_hidden = !(appstate & SDL_APPACTIVE); - vid_hasfocus = (appstate & SDL_APPMOUSEFOCUS) && (appstate & SDL_APPINPUTFOCUS); + vid_hasfocus = (appstate & SDL_APPINPUTFOCUS) != 0; #endif vid_activewindow = !vid_hidden && vid_hasfocus;