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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_width | Holds the width in pixels | verified, proof one | console/display#format-validation |
0x0004 | 4 | uint32_t | m_height | Holds the height in pixels | verified, proof one | console/display#format-validation |
0x0008 | 4 | uint32_t | m_formatWord | Holds the format word, 16 or 32 | verified, proof one | console/display#format-validation |
0x000c | 4 | uint32_t | m_refresh | Holds the refresh rate | verified, proof one | console/display#format-validation |