CGxDevice::DeviceSetFormat
function · gx · primitive
- Address
0x591fd0· 127 bytes, up to0x59204e- Signature
uint32_t __thiscall (CGxDevice *this, void *format)- Meaning
- Copies a format into the device, raising a size below 320 x 240 to it, sets the aspect ratio and returns 1
- Confidence
- verified, proof one
- Finding
- gx/device#base-format-setter
- Test
gx::aspect_ratio_matches_binary
Finding: Base format setter in gx: the device
CGxDevice::DeviceSetFormat(format), slot +0x28, copies the 14-dword format to +0x204. When
both its width and its height are below the minimum, 320 × 240, it raises them to it; one below
alone is kept. With the format's constrain-aspect byte set it stores width / height as the aspect
ratio 0xc0ef60, and 0 otherwise, and it returns 1. Each backend's setter calls it once its
window and its context or device are made. The two window procedures' sizing helpers read the ratio and the minimum.
The derivation is in the doc.
Callers 2
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.