AtlasPage::SetCellSize
function · font · primitive
- Address
0x5cf360· 361 bytes, up to0x5cf4c8- Signature
void __thiscall (AtlasPage *this, void *font, uint32_t cellSize)- Meaning
- Sets the number of cell rows of a page to 256 over the cell size
- Confidence
- verified, proof one
- Finding
- font/glyphs#pages-and-cells
- Test
font::texcache_set_cellsize_difftest
Finding: Pages and cells in font: glyph cache and atlas
A page is cut into rows of the font's cell size and each row is a list of cells. 0x5cf360 sets
how many rows a page has: 256 / cellSize (an unguarded div), with 256 free pixels in each row. 0x5cf5a0 tries
each row in turn to find a free span for a glyph through 0x5c81b0. 0x5cfca0 (0x5cf491) constructs
each 16-byte row in 0x5cf360: its list at +4 is made empty (0x5cfcb2) and 0x18 is stored at +0 (0x5cfcb7).
The derivation is in the doc.
Callers 1
- CGxFont::NewCodeDesc font
Callees 7
- 0x5cb0e0 font
- AtlasRow::InitList font
- 0x5cfd00 unassigned
- 0x5cfdc0 unassigned
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.