mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 21:12:27 +00:00
clean up V_CheckGamma a bit
This commit is contained in:
parent
2d5f4b86fb
commit
8327d1edac
1 changed files with 4 additions and 12 deletions
|
@ -271,20 +271,12 @@ byte gammatable[256]; // palette is sent through this
|
|||
qboolean
|
||||
V_CheckGamma (void)
|
||||
{
|
||||
//static float oldbrightness;
|
||||
//static float oldcontrast;
|
||||
static float oldgamma;
|
||||
|
||||
if (oldgamma != vid_gamma->value) {
|
||||
if (oldgamma == vid_gamma->value)
|
||||
return false;
|
||||
oldgamma = vid_gamma->value;
|
||||
VID_UpdateGamma (vid_gamma);
|
||||
}
|
||||
//if ((brightness->value == oldbrightness) && contrast->value == oldcontrast)
|
||||
// return false;
|
||||
//oldbrightness = brightness->value;
|
||||
//oldcontrast = contrast->value;
|
||||
|
||||
//BuildGammaTable (brightness->value, contrast->value);
|
||||
vid.recalc_refdef = 1; // force a surface cache flush
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue