benilla-re systems structs docs

CGxDeviceD3d::DrawCursor

function · gx · host

Address
0x59a870 · 227 bytes, up to 0x59a952
Signature
void __thiscall (CGxDeviceD3d *this)
Meaning
Draws the software cursor in its own scene, or copies a changed image into the hardware cursor
Confidence
verified, proof one
Finding
gx/slots#cursor

Finding: Cursor in gx: the device's virtual slots

The cursor is the 32 by 32 image at +0x2890 with its hot spot at +0x2888, +0x288c. It is a hardware cursor when the format's hardware cursor byte (+5) is set and the device reports colour cursors (+0x300); OpenGL never does. Otherwise the base draws it at each present while it is shown (+0x2880, 1 at construction) and the pointer is inside the draw rectangle: a 32 by 32 textured quad whose top left is the pointer minus the hot spot, which Direct3D moves half a pixel left and up. A hardware cursor gets its image at the present after the hot spot is set: the 32 rows go into its surface and to SetCursorProperties.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.