benilla-re systems structs docs

screencoord

rowsnamedverifiedproof twotested
functions1111 (100%)11 (100%)2 (18%)7 (63%)
globals44 (100%)4 (100%)4 (100%)–
structs0––––
fields0––––
all1515 (100%)15 (100%)6 (40%)7 (63%)

Docs

screencoord

The screen aspect scale: four dwords set from the display's aspect ratio, eleven small functions that multiply or divide coordinates by them, and the conversion between script units and layout units that every script function builds from them.

The object file is the eleven functions from 0x41ad10 through 0x41ae70. It has no initializer in the C runtime's run, no vtable and no source path, and it calls nothing. The four globals 0x832a40, 0x832a44, 0x832a48 and 0x832a4c are read or written only inside it: a scan of the listing for each, and of the image for each little-endian dword, finds 2, 9, 9 and 2 places, all in 0x41ad10 to 0x41ae7d. Static-initializer thunks of other files stand on both sides of it. Two callers set the aspect, glue and the interface; 446 other call sites scale, unscale or read through it. Three functions have no caller. The script conversions are inlined at each call site; the last entries state them and the units the layout works in.

Closure

8 roots. A walk of direct calls and jumps from them reaches 8 of the 11 functions the system owns, and stops at 0 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.

Roots

Functions 11

addressnameclassconfidencetestclosure
0x41ad10SetScreenAspectprimitiveverified, proof two✓✓
0x41ad60GetStoredScreenAspectunreachedverified, proof one
0x41ad70GetScaledScreenAspectorchestrationverified, proof two✓
0x41ad80ScaleScreenDeltaprimitiveverified, proof one✓✓
0x41adb0ScaleScreenRectunreachedverified, proof one
0x41ade0UnscaleScreenXYprimitiveverified, proof one✓✓
0x41ae10UnscaleScreenRectunreachedverified, proof one
0x41ae40DivideByScreenScaleXprimitiveverified, proof one✓✓
0x41ae50DivideByScreenScaleYprimitiveverified, proof one✓✓
0x41ae60MultiplyByScreenScaleXprimitiveverified, proof one✓✓
0x41ae70MultiplyByScreenScaleYprimitiveverified, proof one✓✓

Globals 4

addressnametypeconfidence
0x832a40s_screenAspectfloatverified, proof two
0x832a44s_screenScaleXfloatverified, proof two
0x832a48s_screenScaleYfloatverified, proof two
0x832a4cs_screenAspectScaledfloatverified, proof two