]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 b5646101d425bb830d01eb6410e3d3057896897b..5035a182c07b6dc2c9970591377946ef2a0e61dc 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 11eea0e26b890a9a54a7751134116f72c03d2725..4c36b9a0f3edef63490f0445e2e66f28ba757dcd 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)
        {