From: havoc Date: Sun, 18 May 2008 02:11:14 +0000 (+0000) Subject: audit of fullscreengrab in VID_SetMouse, getting rid of unnecessary X-Git-Tag: xonotic-v0.1.0preview~2234 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=98a84ab2dde28e1378f868b1098b3a5f433c9bb2;p=xonotic%2Fdarkplaces.git audit of fullscreengrab in VID_SetMouse, getting rid of unnecessary cases git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8299 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index b1f5df21..dad5df85 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -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(); } diff --git a/vid_agl.c b/vid_agl.c index 2648ce27..88e33a16 100644 --- 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) {