TexturePortraitUpdate
function · ui · orchestration
- Address
0x525ae0· 35 bytes, up to0x525b02- 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
- Answers a portrait texture's level request with the width times 4 and the owner's pixel array
- Confidence
- verified, proof one
- Finding
- ui/portraittextures#portrait-sink
Finding: Portrait sink in ui: portrait textures
0x525d30(texture, name) sets a texture to the circular portrait of an image. An empty name does nothing. The cache
0xc0ce30 is looked up by the Storm hash of the name (0x64b3f0, which folds case and /) with a case-sensitive
compare; a hit sets the cached texture. A miss inserts the entry first, then loads <name>.blp (appending .blp
whatever the name ends in) and decodes mip 0 as 32-bit. It keeps exactly 64 by 64 texels (4096), copied unchanged,
replaces every texel's alpha byte with the mask byte at the same index, creates a 64 by 64 texture named Portrait2,
and sets it. Names that differ only in case get separate entries.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.