feat(ui): implement Script_GetGamma

This commit is contained in:
fallenoak 2025-11-18 19:53:49 -06:00
parent f119a1836f
commit 43728820eb
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -212,7 +212,11 @@ int32_t Script_GetVideoCaps(lua_State* L) {
} }
int32_t Script_GetGamma(lua_State* L) { int32_t Script_GetGamma(lua_State* L) {
WHOA_UNIMPLEMENTED(0); auto gammaVar = CVar::Lookup("gamma");
lua_pushnumber(L, 1.0 - gammaVar->GetFloat());
return 1;
} }
int32_t Script_SetGamma(lua_State* L) { int32_t Script_SetGamma(lua_State* L) {