benilla-re systems structs docs

ApplyAutoUiScale

function · ui · primitive

Address
0x492f70 · 223 bytes, up to 0x49304e
Signature
void __fastcall (uint32_t width, uint32_t height, uint32_t force)
Meaning
Sets UIParent to 768 over the height, capped for narrow windows and at least 0.9
Confidence
verified, proof one
Finding
ui/uiscale#the-automatic-scale
Test
ui::glue_492_492f70_recip_unit

Finding: The automatic scale in ui: The interface scale

With useUiScale off, which is the default, UIParent is not left at 1.0. Its scale is 768 over the window's height when the height is above 768, else 1.0; capped to 0.75·a for an aspect under 4/3; and raised to at least 0.9. It is applied when the display mode is set and when useUiScale is turned off. The result is 0.9 at 1920×1080 and 2560×1440 and 0.96 at 1280×800.

The derivation is in the doc.

Callers 2

Callees 3

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