]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
Factorized audio CD code
[xonotic/darkplaces.git] / vid_wgl.c
index 2f98be1f892a09de617dceec9834be36167f3ee6..049258ecdebc4e20d9f36464a3e2f1050c21108b 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -431,14 +431,6 @@ ClearAllStates
 */
 void ClearAllStates (void)
 {
-       int             i;
-
-// send an up event for each key, to make sure the server clears them all
-       for (i=0 ; i<256 ; i++)
-       {
-               Key_Event (i, 0, false);
-       }
-
        Key_ClearStates ();
        IN_ClearStates ();
 }
@@ -476,7 +468,6 @@ void AppActivate(BOOL fActive, BOOL minimize)
 
        if (fActive)
        {
-               vid_allowhwgamma = true;
                if (vid_isfullscreen)
                {
                        if (vid_wassuspended)
@@ -493,7 +484,6 @@ void AppActivate(BOOL fActive, BOOL minimize)
 
        if (!fActive)
        {
-               vid_allowhwgamma = false;
                vid_usingmouse = false;
                IN_DeactivateMouse ();
                IN_ShowMouse ();