]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
removed some unused variables
[xonotic/darkplaces.git] / vid_glx.c
index 04d6516ac50c4294fff924d9877747a822c4393f..463d3854f12f5e61ac1202a22a3e7aa3a3702d20 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -434,13 +434,11 @@ static void HandleEvents(void)
                case MapNotify:
                        // window restored
                        vid_hidden = false;
-                       vid_activewindow = false;
                        VID_RestoreSystemGamma();
                        break;
                case UnmapNotify:
                        // window iconified/rolledup/whatever
                        vid_hidden = true;
-                       vid_activewindow = false;
                        VID_RestoreSystemGamma();
                        break;
                case FocusIn:
@@ -493,7 +491,7 @@ static int GL_OpenLibrary(const char *name)
                Con_Printf("Unable to open symbol list for %s\n", name);
                return false;
        }
-       strcpy(gl_driver, name);
+       strlcpy(gl_driver, name, sizeof(gl_driver));
        return true;
 }