benilla-re systems structs docs

CGxDevice::SetCursorHotspot

function · gx · orchestration

Address
0x595c40 · 68 bytes, up to 0x595c83
Signature
void __thiscall (CGxDevice *this, uint32_t x, uint32_t y)
Meaning
Stores the cursor hot spot and marks the whole software cursor texture dirty
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 1

Callees 1

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