@@ -265,6 +265,16 @@ void CClientVariables::ValidateValues()
265265 ClampValue (" voicevolume" , 0 .0f , 1 .0f );
266266 ClampValue (" mapalpha" , 0 , 255 );
267267 ClampValue (" mapimage" , 0 , 1 );
268+ ClampValue (" borderless_gamma_power" , 0 .5f , 2 .0f );
269+ ClampValue (" borderless_brightness_scale" , 0 .5f , 2 .0f );
270+ ClampValue (" borderless_contrast_scale" , 0 .5f , 2 .0f );
271+ ClampValue (" borderless_saturation_scale" , 0 .5f , 2 .0f );
272+ ClampValue (" borderless_gamma_enabled" , false , true );
273+ ClampValue (" borderless_brightness_enabled" , false , true );
274+ ClampValue (" borderless_contrast_enabled" , false , true );
275+ ClampValue (" borderless_saturation_enabled" , false , true );
276+ ClampValue (" borderless_apply_windowed" , false , true );
277+ ClampValue (" borderless_apply_fullscreen" , false , true );
268278}
269279
270280void CClientVariables::LoadDefaults ()
@@ -348,6 +358,24 @@ void CClientVariables::LoadDefaults()
348358 DEFAULT (" display_fullscreen_style" , 0 ); // 0-standard 1-borderless 2-borderless keep res 3-borderless stretch
349359 DEFAULT (" display_windowed" , 0 ); // 0-off 1-on
350360 DEFAULT (" multimon_fullscreen_minimize" , 1 ); // 0-off 1-on
361+ DEFAULT (" borderless_gamma_power" , 0 .95f ); // Gamma exponent applied to windowed gamma ramp (1.0 = unchanged)
362+ DEFAULT (" borderless_brightness_scale" , 1 .03f ); // Brightness multiplier for windowed gamma ramp (1.0 = unchanged)
363+ DEFAULT (" borderless_contrast_scale" , 1 .0f ); // Contrast multiplier for borderless presentation (1.0 = unchanged)
364+ DEFAULT (" borderless_saturation_scale" , 1 .0f ); // Saturation multiplier for borderless presentation (1.0 = unchanged)
365+ DEFAULT (" borderless_enable_srgb" , false ); // Enable sRGB correction when running borderless
366+ DEFAULT (" borderless_gamma_enabled" , false ); // Apply gamma adjustment while borderless tuning active
367+ DEFAULT (" borderless_brightness_enabled" , false ); // Apply brightness adjustment while borderless tuning active
368+ DEFAULT (" borderless_contrast_enabled" , false ); // Apply contrast adjustment while borderless tuning active
369+ DEFAULT (" borderless_saturation_enabled" , false ); // Apply saturation adjustment while borderless tuning active
370+ DEFAULT (" borderless_apply_windowed" , false ); // Apply display adjustments while windowed/borderless
371+ DEFAULT (" borderless_apply_fullscreen" , false ); // Apply display adjustments while in exclusive fullscreen
372+
373+ if (Exists (" borderless_enable_srgb" ))
374+ {
375+ bool legacyEnable = false ;
376+ Get (" borderless_enable_srgb" , legacyEnable);
377+ Set (" borderless_apply_windowed" , legacyEnable);
378+ }
351379 DEFAULT (" vertical_aim_sensitivity" , 0 .0015f ); // 0.0015f is GTA default setting
352380 DEFAULT (" process_priority" , 0 ); // 0-normal 1-above normal 2-high
353381 DEFAULT (" process_dpi_aware" , false ); // Enable DPI awareness in core initialization
0 commit comments