]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
changed vid_hasfocus check to use SDL_APPINPUTFOCUS only, not checking
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Apr 2011 08:09:43 +0000 (08:09 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 29 Apr 2011 22:23:02 +0000 (00:23 +0200)
SDL_APPMOUSEFOCUS

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11083 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f9555b33708bfd874a5ea66f7bf4e04057b70438

vid_sdl.c

index 396c23f547d7674aebfe0965fc34a8607d0b892a..76cc2ac44a38d2b745e578edaec742e5046b13ea 100644 (file)
--- 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;