]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
removed vid_allowhwgamma variable because vid_activewindow is a better thing to check
[xonotic/darkplaces.git] / vid_glx.c
index 37b6d5aa24f7fdcb2baf4fc6654f0f58571f4d1b..4135f726b00bbe224a40e6edcb4c5c0edf7b1306 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -468,24 +468,20 @@ static void HandleEvents(void)
                        // window restored
                        vid_hidden = false;
                        vid_activewindow = false;
-                       vid_allowhwgamma = false;
                        VID_RestoreSystemGamma();
                        break;
                case UnmapNotify:
                        // window iconified/rolledup/whatever
                        vid_hidden = true;
                        vid_activewindow = false;
-                       vid_allowhwgamma = false;
                        VID_RestoreSystemGamma();
                        break;
                case FocusIn:
                        // window is now the input focus
-                       vid_allowhwgamma = true;
                        vid_activewindow = true;
                        break;
                case FocusOut:
                        // window is no longer the input focus
-                       vid_allowhwgamma = false;
                        vid_activewindow = false;
                        VID_RestoreSystemGamma();
                        break;
@@ -835,7 +831,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp)
 
        usingmouse = false;
        vid_hidden = false;
-       vid_allowhwgamma = true;
+       vid_activewindow = true;
        GL_Init();
        return true;
 }