diff --git a/nq/source/in_svgalib.c b/nq/source/in_svgalib.c
index 869e6df83..03fc4420c 100644
--- a/nq/source/in_svgalib.c
+++ b/nq/source/in_svgalib.c
@@ -135,7 +135,7 @@ void
 IN_Init_Cvars (void)
 {
 	JOY_Init_Cvars ();
-	m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, NULL,
+	m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, NULL,
 			"Toggle mouse input filtering.");
 }
 
diff --git a/nq/source/in_win.c b/nq/source/in_win.c
index 10c94aa71..f4fc0f3b2 100644
--- a/nq/source/in_win.c
+++ b/nq/source/in_win.c
@@ -424,7 +424,7 @@ void
 IN_Init_Cvars (void)
 {
 	// mouse variables
-	m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, NULL,
+	m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, NULL,
 			"Toggle mouse input filtering.");
 
         JOY_Init_Cvars();
diff --git a/qw/source/in_svgalib.c b/qw/source/in_svgalib.c
index 6a316dfee..cc0167ac8 100644
--- a/qw/source/in_svgalib.c
+++ b/qw/source/in_svgalib.c
@@ -134,7 +134,7 @@ void
 IN_Init_Cvars (void)
 {
 	JOY_Init_Cvars ();
-	m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, NULL,
+	m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, NULL,
 			"Toggle mouse input filtering.");
 }
 
diff --git a/qw/source/in_win.c b/qw/source/in_win.c
index ba8c16a60..0a05095b5 100644
--- a/qw/source/in_win.c
+++ b/qw/source/in_win.c
@@ -425,7 +425,7 @@ void
 IN_Init_Cvars (void)
 {
 	// mouse variables
-	m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, NULL,
+	m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, NULL,
 			"Toggle mouse input filtering.");
 
         JOY_Init_Cvars();
diff --git a/qw/source/vid_3dfxsvga.c b/qw/source/vid_3dfxsvga.c
index 1168e94f0..82c72fbf8 100644
--- a/qw/source/vid_3dfxsvga.c
+++ b/qw/source/vid_3dfxsvga.c
@@ -40,6 +40,7 @@
 
 #include <GL/gl.h>
 #include <GL/fxmesa.h>
+#include <glide/glide.h>
 #include <glide/sst1vid.h>
 #include <sys/signal.h>
 
@@ -61,6 +62,8 @@
 // FIXME!!!!! This belongs in include/qfgl_ext.h -- deek
 typedef void (GLAPIENTRY * QF_3DfxSetDitherModeEXT) (GrDitherMode_t mode);
 
+cvar_t      *vid_system_gamma;
+
 static fxMesaContext fc = NULL;
 
 int         VID_options_items = 0;
@@ -275,6 +278,7 @@ VID_Init (unsigned char *palette)
 	GL_Init ();
 
 	GL_CheckBrightness (palette);
+	VID_InitGamma (palette);
 	VID_SetPalette (palette);
 
 	// Check for 3DFX Extensions and initialize them.
@@ -288,6 +292,7 @@ VID_Init (unsigned char *palette)
 void
 VID_Init_Cvars (void)
 {
+	vid_system_gamma = Cvar_Get ("vid_system_gamma", "1", CVAR_ARCHIVE, NULL, "Use system gamma control if available");
 }
 
 void
@@ -312,3 +317,14 @@ void
 VID_SetCaption (char *text)
 {
 }
+
+qboolean
+VID_SetGamma (double gamma)
+{
+	 // FIXME: Need function for HW gamma correction
+	 // return X11_SetGamma (gamma);
+	grGammaCorrectionValue((float) gamma);
+	return true;
+	 
+}
+