mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +00:00
sw gamma now seems to work
This commit is contained in:
parent
6a75c4e00d
commit
2d5f4b86fb
1 changed files with 10 additions and 8 deletions
|
@ -271,18 +271,20 @@ byte gammatable[256]; // palette is sent through this
|
||||||
qboolean
|
qboolean
|
||||||
V_CheckGamma (void)
|
V_CheckGamma (void)
|
||||||
{
|
{
|
||||||
static float oldbrightness;
|
//static float oldbrightness;
|
||||||
static float oldcontrast;
|
//static float oldcontrast;
|
||||||
static float oldgamma;
|
static float oldgamma;
|
||||||
|
|
||||||
if (oldgamma != vid_gamma->value)
|
if (oldgamma != vid_gamma->value) {
|
||||||
|
oldgamma = vid_gamma->value;
|
||||||
VID_UpdateGamma (vid_gamma);
|
VID_UpdateGamma (vid_gamma);
|
||||||
if ((brightness->value == oldbrightness) && contrast->value == oldcontrast)
|
}
|
||||||
return false;
|
//if ((brightness->value == oldbrightness) && contrast->value == oldcontrast)
|
||||||
oldbrightness = brightness->value;
|
// return false;
|
||||||
oldcontrast = contrast->value;
|
//oldbrightness = brightness->value;
|
||||||
|
//oldcontrast = contrast->value;
|
||||||
|
|
||||||
BuildGammaTable (brightness->value, contrast->value);
|
//BuildGammaTable (brightness->value, contrast->value);
|
||||||
vid.recalc_refdef = 1; // force a surface cache flush
|
vid.recalc_refdef = 1; // force a surface cache flush
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue