[quake3-commits] r1913 - trunk/code/q3_ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Mar 7 18:07:24 EST 2011


Author: thilo
Date: 2011-03-07 18:07:24 -0500 (Mon, 07 Mar 2011)
New Revision: 1913

Modified:
   trunk/code/q3_ui/ui_video.c
Log:
Make Video settings menu revert some settings to default values via Cvar_Reset() instead of hardcoded values (#2589)


Modified: trunk/code/q3_ui/ui_video.c
===================================================================
--- trunk/code/q3_ui/ui_video.c	2011-03-07 22:56:03 UTC (rev 1912)
+++ trunk/code/q3_ui/ui_video.c	2011-03-07 23:07:24 UTC (rev 1913)
@@ -683,9 +683,11 @@
 		trap_Cvar_SetValue( "r_mode", s_graphicsoptions.mode.curvalue );
 
 	trap_Cvar_SetValue( "r_fullscreen", s_graphicsoptions.fs.curvalue );
-	trap_Cvar_SetValue( "r_colorbits", 0 );
-	trap_Cvar_SetValue( "r_depthbits", 0 );
-	trap_Cvar_SetValue( "r_stencilbits", 0 );
+
+	trap_Cvar_Reset("r_colorbits");
+	trap_Cvar_Reset("r_depthbits");
+	trap_Cvar_Reset("r_stencilbits");
+
 	trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue );
 
 	if ( s_graphicsoptions.geometry.curvalue == 2 )



More information about the quake3-commits mailing list