From 753bb1d82a323731da03a765e0c1457fb851f1ee Mon Sep 17 00:00:00 2001 From: molivier Date: Mon, 23 May 2005 12:36:03 +0000 Subject: [PATCH] vid_usemouse doesn't need to be a global variable git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5321 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 3 ++- vid_wgl.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index b5646101..5035a182 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -88,7 +88,6 @@ Atom wm_delete_window_atom; static qboolean mouse_avail = true; static qboolean vid_usingmouse = false; -static qboolean vid_usemouse = false; static qboolean vid_usingvsync = false; static qboolean vid_usevsync = false; static float mouse_x, mouse_y; @@ -611,6 +610,8 @@ void InitSig(void) void VID_Finish (void) { + qboolean vid_usemouse; + vid_usevsync = vid_vsync.integer && !cls.timedemo && gl_videosyncavailable; if (vid_usingvsync != vid_usevsync && gl_videosyncavailable) { diff --git a/vid_wgl.c b/vid_wgl.c index 11eea0e2..4c36b9a0 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -78,7 +78,6 @@ static qboolean vid_initialized = false; static qboolean vid_wassuspended = false; static qboolean vid_usingmouse = false; static qboolean vid_usingvsync = false; -static qboolean vid_usemouse = false; static qboolean vid_usevsync = false; static HICON hIcon; @@ -260,6 +259,8 @@ static void IN_StartupMouse (void); void VID_Finish (void) { + qboolean vid_usemouse; + vid_usevsync = vid_vsync.integer && !cls.timedemo && gl_videosyncavailable; if (vid_usingvsync != vid_usevsync && gl_videosyncavailable) { -- 2.39.2