diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 14:07:49 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 14:07:49 +0100 |
| commit | 5bc97393aee4124b00db3ab4fbe8d6e26ba88069 (patch) | |
| tree | 7315ee842a071d30f5e035b9a11b0a8045e26588 /src/menu.cpp | |
| parent | Transitions: per-trigger targets and 3D wireframe; FOV range fixes (diff) | |
| download | hl2h-5bc97393aee4124b00db3ab4fbe8d6e26ba88069.tar.gz hl2h-5bc97393aee4124b00db3ab4fbe8d6e26ba88069.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
| 407 | } else if (strcmp(key, "gamma") == 0) { | 407 | } else if (strcmp(key, "gamma") == 0) { |
| 408 | dst = &g_gamma; | 408 | dst = &g_gamma; |
| 409 | lo = 16; | 409 | lo = 16; |
| 410 | hi = 30; | 410 | hi = 26; // the engine clamps mat_monitorgamma at 2.6 |
| 411 | stock = 22; | 411 | stock = 22; |
| 412 | } | 412 | } |
| 413 | if (dst) { | 413 | if (dst) { |
