audit of fullscreengrab in VID_SetMouse, getting rid of unnecessary
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 May 2008 02:11:14 +0000 (02:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 May 2008 02:11:14 +0000 (02:11 +0000)
cases

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8299 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c
vid_agl.c

index b1f5df2..dad5df8 100644 (file)
@@ -2281,7 +2281,7 @@ void CL_UpdateScreen(void)
        else if (key_dest == key_menu)
                VID_SetMouse(vid.fullscreen, !in_client_mouse, true);
        else
-               VID_SetMouse(vid.fullscreen || (vid_mouse.integer && !cls.demoplayback && !cl.csqc_wantsmousemove), vid_mouse.integer && !cls.demoplayback && !cl.csqc_wantsmousemove, true);
+               VID_SetMouse(vid.fullscreen, vid_mouse.integer && !cls.demoplayback && !cl.csqc_wantsmousemove, true);
 
        VID_Finish();
 }
index 2648ce2..88e33a1 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -109,7 +109,7 @@ void VID_GetWindowSize (int *x, int *y, int *width, int *height)
 void VID_SetMouse(qboolean fullscreengrab, qboolean relative, qboolean hidecursor)
 {
        if (!mouse_avail || !window)
-               fullscreengrab = relative = hidecursor = false;
+               relative = hidecursor = false;
 
        if (relative)
        {