benilla-re systems structs docs

TextureValueStripUpdate

function · ui · primitive

Address
0x78b960 · 128 bytes, up to 0x78b9df
Signature
void __fastcall (uint32_t mode, uint32_t width, uint32_t arg3, uint32_t arg4, uint32_t arg5, void *owner, uint32_t *pitch, void **bits)
Meaning
Fills a 64-texel buffer with the owner's colour and answers level requests with it
Confidence
verified, proof one
Finding
ui/colorselect#the-value-strip-texture

Finding: The value strip texture in ui: ColorSelect

ColorValueTexture gets an 8 by 8 texture whose every texel is the colour at full value +0x334, shaded by a vertical gradient from black to white, so the strip's colour runs from black to the full colour. Setting a texture destroys the previous one, creates the 8 by 8 texture ValueTexture on the colour, sets the gradient and parents the texture to the frame. The wheel's texture update 0x78b760 and the portrait's 0x525ae0 are the same code: they hand the device the owner's pixel array unchanged.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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