benilla-re systems structs docs

s_device

global · console

Address
0xc4ec1c · 4 bytes, up to 0xc4ec1f
Type
uint32_t
Meaning
Holds the graphics device handle, or 0
Confidence
verified, proof one
Finding
console/display#device-creation

Finding: Device creation in console: display

The device is created from a copy of the record by 0x589ac0 with the window procedure 0x42cfe0. On failure the copy is lowered (0x63b380): the multisample count by 2, to at least 1; then, while the colour index is above 0, the depth index down to 4, then the colour index by one with the depth index back at 7 (4 at colour 0). When it cannot be lowered, the second fixed record is tried once and lowered the same way. With no device, or one with fewer than 2 texture units or no streams, the client shows an error (the locale's startup text, else English) and exits.

The derivation is in the doc.