r89 - trunk/code/unix

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Sep 8 04:34:32 EDT 2005


Author: ludwig
Date: 2005-09-08 04:34:32 -0400 (Thu, 08 Sep 2005)
New Revision: 89

Modified:
   trunk/code/unix/sdl_glimp.c
Log:
use r_ignorehwgamma cvar to allow user to disable gamma correction


Modified: trunk/code/unix/sdl_glimp.c
===================================================================
--- trunk/code/unix/sdl_glimp.c	2005-09-07 20:42:43 UTC (rev 88)
+++ trunk/code/unix/sdl_glimp.c	2005-09-08 08:34:32 UTC (rev 89)
@@ -442,7 +442,12 @@
 {
   // NOTE TTimo we get the gamma value from cvar, because we can't work with the s_gammatable
   //   the API wasn't changed to avoid breaking other OSes
-  float g = Cvar_Get("r_gamma", "1.0", 0)->value;
+  float g;
+
+  if ( r_ignorehwgamma->integer )
+    return;
+
+  g  = Cvar_Get("r_gamma", "1.0", 0)->value;
   SDL_SetGamma(g, g, g);
 }
 
@@ -1450,3 +1455,4 @@
 // end of linux_glimp_sdl.c ...
 
 
+




More information about the quake3-commits mailing list