vid_usemouse doesn't need to be a global variable
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2005 12:36:03 +0000 (12:36 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2005 12:36:03 +0000 (12:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5321 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c
vid_wgl.c

index b564610..5035a18 100644 (file)
--- 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)
        {
index 11eea0e..4c36b9a 100644 (file)
--- 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)
        {