benilla-re systems structs docs

ValidateDeviceFormat

function · console · primitive

Address
0x63a060 · 448 bytes, up to 0x63a21f
Signature
void __thiscall (void *this)
Meaning
Makes a format's size and refresh rate agree with the device's modes
Confidence
verified, proof one
Finding
console/display#format-validation

Finding: Format validation in console: display

0x63a060 makes a record agree with the device's modes. It builds, once, seven stock sizes from 1600 × 1200 down to 640 × 480. If no device mode has the record's width and height, it takes the first stock size smaller in both and searches again, until a mode matches or the list ends. It keeps the record's refresh rate when a mode of that size and format word has it; otherwise it takes the lowest refresh of those modes, or 60 when none, and logs ValidateFormatMonitor(): invalid refresh rate <old>, set to <new>.

The derivation is in the doc.

Callers 2

Callees 2

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