From 5bc97393aee4124b00db3ab4fbe8d6e26ba88069 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 14:07:49 +0100 Subject: Gamma: clamp slider to the engine's 2.6 cap, defer readback The engine clamps mat_monitorgamma at 2.6, so the 2.8..3.0 end of the slider did nothing. Read the value back one tick later (ClientCmd is queued) and interpose SDL_SetWindowGammaRamp to see whether the engine pushes a ramp at all. --- src/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index ead5f2d..248aa48 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -407,7 +407,7 @@ static bool config_load() { } else if (strcmp(key, "gamma") == 0) { dst = &g_gamma; lo = 16; - hi = 30; + hi = 26; // the engine clamps mat_monitorgamma at 2.6 stock = 22; } if (dst) { -- cgit v1.2.3