BuildResolutionList
function · ui · primitive
- Address
0x48bc90· 628 bytes, up to0x48bf03- Signature
void __cdecl (void)- Meaning
- Fills the resolution list once from the sorted display modes, or the four fixed sizes when none pass
- Confidence
- verified, proof one
- Finding
- ui/videoverbs#the-resolution-list
- Test
ui::luabind_48b_aspect_filter
Finding: The resolution list in ui: the video option verbs
The list of {width, height} pairs (8 bytes each) is built once, on first use by any of the four resolution verbs, and
never rebuilt. With the widescreen option (default 1) set, the connected display's modes are taken in ascending pixel
area and kept when width over height is at least 1.248, the width at least 800 and the height at least 600, skipping a pair
equal to the last one kept. With the option clear, missing, or no mode surviving, the list is 800x600, 1024x768,
1280x1024 and 1600x1200, never mixed with kept modes.
The derivation is in the doc.
Callers 4
- Script::GetScreenResolutions ui
- Script::GetCurrentResolution ui
- Script::SetScreenResolution ui
- Script::GetRefreshRates ui
Callees 7
- FreeField496b00 ui
- ReserveArray496d70 ui
- 0x497040 ui
- RoundUp497080 ui
- ResizeArray4970a0 ui
- GxEnumerateModes gx
- CVar::Lookup cvar
Calls and jumps by a bare address, from tables/calls.tsv.