Skip to content

Commit

Permalink
Make Video settings menu revert some settings to default values via C…
Browse files Browse the repository at this point in the history
…var_Reset() instead of hardcoded values (#2589)
  • Loading branch information
Thilo Schulz committed Mar 7, 2011
1 parent dd0161f commit 97ed365
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/q3_ui/ui_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,11 @@ static void GraphicsOptions_ApplyChanges( void *unused, int notification )
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 )
Expand Down

0 comments on commit 97ed365

Please sign in to comment.