Revert default gamma back to 1.0, limit max value to 1.2

This commit is contained in:
Petr Bartos 2022-04-10 20:42:10 +02:00
parent 3bceed66ab
commit efaf71eeea
4 changed files with 4 additions and 4 deletions

View file

@ -710,7 +710,7 @@ void GraphicsOptions_MenuInit( void )
s_graphicsoptions.gamma.generic.callback = GraphicsOptions_Event;
s_graphicsoptions.gamma.generic.id = ID_GAMMA;
s_graphicsoptions.gamma.minvalue = 0.8f;
s_graphicsoptions.gamma.maxvalue = 1.3f;
s_graphicsoptions.gamma.maxvalue = 1.2f;
y += BIGCHAR_HEIGHT+2;
// references "cg_oldRail"

View file

@ -1322,7 +1322,7 @@ void R_Register( void )
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_LINEAR", CVAR_ARCHIVE );
r_swapInterval = ri.Cvar_Get( "r_swapInterval", "0",
CVAR_ARCHIVE | CVAR_LATCH );
r_gamma = ri.Cvar_Get( "r_gamma", "1.05", CVAR_ARCHIVE );
r_gamma = ri.Cvar_Get( "r_gamma", "1", CVAR_ARCHIVE );
r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE );
r_railWidth = ri.Cvar_Get( "r_railWidth", "16", CVAR_ARCHIVE );

View file

@ -199,7 +199,7 @@ itemDef {
group grpSystem
type ITEM_TYPE_SLIDER
text "Brightness:"
cvarfloat "r_gamma" 0.1 0.8 1.3
cvarfloat "r_gamma" 0.05 0.8 1.2
rect 0 70 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133

View file

@ -102,7 +102,7 @@ itemDef {
group grpSystem
type ITEM_TYPE_SLIDER
text "Brightness:"
cvarfloat "r_gamma" 0.1 0.8 1.3
cvarfloat "r_gamma" 0.05 0.8 1.2
rect 99 67 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128