benilla-re systems structs docs

GammaCallback

function · client

Address
0x4034d0 · 46 bytes, up to 0x4034fd
Signature
bool __fastcall (CVar *cvar, const char *oldText, const char *newText, void *callbackArg)
Meaning
Applies the Gamma setting to the device's working ramp unless DesktopGamma is set
Confidence
verified, proof one
Finding
gx/device#gamma-setting

Finding: Gamma setting in gx: the device

ClientRegisterConsoleCommands registers Gamma with the callback 0x4034d0. It reads the new value with SStrToFloat and, when the DesktopGamma record is registered and its integer value is 0, passes the float to 0x589c00, which calls slot +0x34 of the device in s_gxDevice: the working ramp is rebuilt from that gamma (Gamma ramp). With DesktopGamma set the value is kept and not applied. It returns 1 either way.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.