BuildCursorPicture
function · ui · primitive
- Address
0x523840· 385 bytes, up to0x5239c0- Signature
void __cdecl (void)- Meaning
- Scales a 64 by 64 icon to the 32 by 32 payload picture
- Confidence
- verified, proof one
- Finding
- ui/cursor#dragging-picture
- Test
ui::geo_523840
Finding: Dragging picture in ui: the cursor payload
While a payload with a picture is held, the pointer shows that picture: the icon scaled to 32 by 32, laid
over the Item cursor where that image is opaque. 0x523a70(guid) and 0x523b30(displayId) (kinds 1, 5, 7
and 9), 0x5239d0(amount) (money) and 0x523a30(path) (spell, pet action, macro, stabled pet) each load a
texture, store the picture state in 0xbe2c48 (1, 2 or 3; the blit tests only for nonzero) and the texture
handle in 0xbe2c60, and call 0x523840.
0x523840 accepts only a 64 by 64 texture. It averages each 2 by 2 block into one pixel, forces the alpha to
0xff, writes 32 by 32 pixels into 0xbe1c28, and frees the texture.
The derivation is in the doc.
Callers 5
- SetCursorPictureCoin ui
- SetCursorPictureFromPath ui
- SetCursorPictureFromItem ui
- SetCursorPictureFromDisplayId ui
- DrawWorldScene terrain
Callees 4
- HandleClose base
- TextureGetBits gx
- TextureGetDimensions gx
- SendCursorImage ui
Calls and jumps by a bare address, from tables/calls.tsv.