benilla-re systems structs docs

CGxMonitorMode

struct · console · 16 bytes

Meaning
Names a device display mode: width, height, format word and refresh rate
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.

Fields 4

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_widthHolds the width in pixelsverified, proof oneconsole/display#format-validation
0x00044uint32_tm_heightHolds the height in pixelsverified, proof oneconsole/display#format-validation
0x00084uint32_tm_formatWordHolds the format word, 16 or 32verified, proof oneconsole/display#format-validation
0x000c4uint32_tm_refreshHolds the refresh rateverified, proof oneconsole/display#format-validation