GetRectEdgeFlags
function · ui · primitive
- Address
0x509bf0· 388 bytes, up to0x509d73- Meaning
- Builds the flag word of the screen edges a rectangle crosses
- Confidence
- verified, proof one
- Finding
- ui/smartrect#pushes-by-region
- Test
ui::geo_509bf0
Finding: Pushes by region in ui: the screen rectangle placement
The screen is divided into nine regions by which edges the rectangle crosses, and the region fixes the order of the four pushes: up, right, down, left for a rectangle inside the screen, and for one beyond an edge the pushes that do not go further out.
| region | edges crossed | order of pushes |
|---|---|---|
| 0 | none | up, right, down, left |
| 1 | near the bottom | left, up, right, up |
| 2 | near the top | left, down, right, down |
| 3 | beyond the right | up, left, down, left |
| 4 | beyond the left | up, right, down, right |
| 5 | right and bottom | up, left, up, left |
| 6 | left and bottom | up, right, up, right |
| 7 | right and top | down, left, down, left |
| 8 | left and top | down, right, down, right |
The derivation is in the doc.
Callers 1
Callees 2
- MultiplyByScreenScaleX screencoord
- MultiplyByScreenScaleY screencoord
Calls and jumps by a bare address, from tables/calls.tsv.