@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
88
99This program is distributed in the hope that it will be useful,
1010but WITHOUT ANY WARRANTY; without even the implied warranty of
11- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1212
1313See the GNU General Public License for more details.
1414
@@ -55,8 +55,8 @@ class CMenuVidOptions : public CMenuFramework
5555 CMenuSlider screenSize;
5656#endif
5757 CMenuSlider gammaIntensity;
58- CMenuSlider glareReduction ;
59- CMenuCheckBox vbo;
58+ CMenuSlider brightness ;
59+ CMenuCheckBox vbo;
6060 CMenuCheckBox swwater;
6161 CMenuCheckBox overbright;
6262 CMenuCheckBox filtering;
@@ -73,7 +73,7 @@ CMenuVidOptions::UpdateConfig
7373void CMenuVidOptions::UpdateConfig ( void )
7474{
7575 float val1 = RemapVal ( gammaIntensity.GetCurrentValue (), 0.0 , 1.0 , 1.8 , 3.0 );
76- float val2 = RemapVal ( glareReduction .GetCurrentValue (), 0.0 , 1.0 , 0.0 , 3.0 );
76+ float val2 = RemapVal ( brightness .GetCurrentValue (), 0.0 , 1.0 , 0.0 , 3.0 );
7777 EngFuncs::CvarSetValue ( " gamma" , val1 );
7878 EngFuncs::CvarSetValue ( " brightness" , val2 );
7979 EngFuncs::ProcessImage ( hTestImage, val1, val2 );
@@ -85,11 +85,11 @@ void CMenuVidOptions::GetConfig( void )
8585 float val2 = EngFuncs::GetCvarFloat ( " brightness" );
8686
8787 gammaIntensity.SetCurrentValue ( RemapVal ( val1, 1 .8f , 3 .0f , 0 .0f , 1 .0f ) );
88- glareReduction .SetCurrentValue ( RemapVal ( val2, 0 .0f , 3 .0f , 0 .0f , 1 .0f ) );
88+ brightness .SetCurrentValue ( RemapVal ( val2, 0 .0f , 3 .0f , 0 .0f , 1 .0f ) );
8989 EngFuncs::ProcessImage ( hTestImage, val1, val2 );
9090
9191 gammaIntensity.SetOriginalValue ( val1 );
92- glareReduction .SetOriginalValue ( val2 );
92+ brightness .SetOriginalValue ( val2 );
9393}
9494
9595void CMenuVidOptions::SaveAndPopMenu ( void )
@@ -183,11 +183,11 @@ void CMenuVidOptions::_Init( void )
183183 gammaIntensity.onCvarGet = VoidCb ( &CMenuVidOptions::GetConfig );
184184 height += 60 ;
185185
186- glareReduction .SetCoord ( 72 , height );
187- glareReduction .szName = L ( " GameUI_Brightness" );
188- glareReduction .Setup ( 0 , 1.0 , 0.025 );
189- glareReduction .onChanged = VoidCb ( &CMenuVidOptions::UpdateConfig );
190- glareReduction .onCvarGet = VoidCb ( &CMenuVidOptions::GetConfig );
186+ brightness .SetCoord ( 72 , height );
187+ brightness .szName = L ( " GameUI_Brightness" );
188+ brightness .Setup ( 0 , 1.0 , 0.025 );
189+ brightness .onChanged = VoidCb ( &CMenuVidOptions::UpdateConfig );
190+ brightness .onCvarGet = VoidCb ( &CMenuVidOptions::GetConfig );
191191 height += 60 ;
192192
193193 done.szName = L ( " GameUI_OK" );
@@ -222,7 +222,7 @@ void CMenuVidOptions::_Init( void )
222222 AddItem ( screenSize );
223223#endif
224224 AddItem ( gammaIntensity );
225- AddItem ( glareReduction );
225+ AddItem ( brightness );
226226 AddItem ( detailtex );
227227 AddItem ( vbo );
228228 AddItem ( swwater );
@@ -235,7 +235,7 @@ void CMenuVidOptions::_Init( void )
235235#endif
236236
237237 gammaIntensity.LinkCvar ( " gamma" );
238- glareReduction .LinkCvar ( " brightness" );
238+ brightness .LinkCvar ( " brightness" );
239239
240240 detailtex.LinkCvar ( " r_detailtextures" );
241241 swwater.LinkCvar ( " r_ripple" );
0 commit comments