benilla-re systems structs docs

PaintLoadingScreen

function · loadingscreen · primitive

Address
0x406a60 · 611 bytes, up to 0x406cc2
Meaning
Fits the viewport to the aspect, loads an ortho projection and draws the screen and the bar
Confidence
verified, proof one
Finding
loadingscreen/screen#paint-pass
Test
loadingscreen::aspect_fit_ortho_difftest

Finding: Paint pass in loadingscreen: screen

The layer's callback 0x406a60 ignores its arguments. It saves the device viewport, sets the unit box, clears with mask 1, and sets the viewport to the rectangle fitted to the scaled aspect a ([0x832a4c]): for a > 1 width 1/a, left (1 − w)·0.5, full height; for a < 1 height a, bottom (1 − a)·0.5, full width; otherwise, and for a NaN, the unit box. It loads an identity view and a projection from (0, 1, 0, 1, 0, 500), sets render states 0xe and 0xf to 0, draws 0x406cd0, then the bar when that returns nonzero, and restores the viewport. 0x406900 calls it directly, then device slot +0x68 with 3.

The derivation is in the doc.

Callers 1

Callees 12

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