benilla-re systems structs docs

s_workingColourIndex

global · console

Address
0xc4ebbc · 4 bytes, up to 0xc4ebbf
Type
uint32_t
Meaning
Holds the working format colour index, +0x24
Confidence
verified, proof one
Finding
console/display#device-format-record

Finding: Device format record in console: display

A device format is 14 dwords: bytes +4 hardware transform-and-lighting (true unless -swtnl), +5 hardware cursor, +6 fix-lag, +7 windowed, +8 constrain aspect and +9 maximise; +0xc depth index, +0x10 width, +0x14 height, +0x18 triple buffering (1 or 2), +0x1c multisample count, +0x20 multisample quality (a float), +0x24 colour index, +0x28 refresh rate and byte +0x2c vertical sync. The working record is 0xc4eb98; 0xc4ea08 keeps the last format the device accepted; fixed records hold 640 × 480 (colour 0, depth 4) at 0xc4ebd0 and 800 × 600 (1, 5) at 0xc4e6fc, both 60 Hz. Colour index 0, 1, 3 is 16, 24, 30 bits; depth index 4, 5, 7 is 16, 24, 32.

The derivation is in the doc.