Script::SetScreenResolution
function · ui · primitive
- Address
0x48bfd0· 249 bytes, up to0x48c0c8- Signature
int __fastcall (lua_State *L)- Meaning
- Writes the chosen list entry to gxResolution and runs gxRestart when it differs
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/videoverbs#choosing-a-resolution
Finding: Choosing a resolution in ui: the video option verbs
SetScreenResolution(n) takes the list entry n−1, an absent or non-numeric n meaning entry 0, with n truncated toward zero.
An n of count+1 reads the entry one past the last, and so do 0, negative values and anything larger, because the
check compares unsigned. When the chosen pair differs from the gxResolution text it writes %dx%d into the option and
runs the console command gxRestart; an equal pair does nothing. The option is staged, not applied, until the restart.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- __ftol crt
- BuildResolutionList ui
- ConsoleCommandExecute console
- CVar::Lookup cvar
- CVar::Set cvar
- SStrPrintf storm
- lua_isnumber lua
- lua_tonumber lua
- _sscanf crt
Calls and jumps by a bare address, from tables/calls.tsv.