screencoord
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 11 | 11 (100%) | 11 (100%) | 2 (18%) | 7 (63%) |
| globals | 4 | 4 (100%) | 4 (100%) | 4 (100%) | – |
| structs | 0 | – | – | – | – |
| fields | 0 | – | – | – | – |
| all | 15 | 15 (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
- SetScreenAspect screencoord
- GetScaledScreenAspect screencoord
- ScaleScreenDelta screencoord
- UnscaleScreenXY screencoord
- DivideByScreenScaleX screencoord
- DivideByScreenScaleY screencoord
- MultiplyByScreenScaleX screencoord
- MultiplyByScreenScaleY screencoord
Functions 11
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x41ad10 | SetScreenAspect | primitive | verified, proof two | ✓ | ✓ |
0x41ad60 | GetStoredScreenAspect | unreached | verified, proof one | ||
0x41ad70 | GetScaledScreenAspect | orchestration | verified, proof two | ✓ | |
0x41ad80 | ScaleScreenDelta | primitive | verified, proof one | ✓ | ✓ |
0x41adb0 | ScaleScreenRect | unreached | verified, proof one | ||
0x41ade0 | UnscaleScreenXY | primitive | verified, proof one | ✓ | ✓ |
0x41ae10 | UnscaleScreenRect | unreached | verified, proof one | ||
0x41ae40 | DivideByScreenScaleX | primitive | verified, proof one | ✓ | ✓ |
0x41ae50 | DivideByScreenScaleY | primitive | verified, proof one | ✓ | ✓ |
0x41ae60 | MultiplyByScreenScaleX | primitive | verified, proof one | ✓ | ✓ |
0x41ae70 | MultiplyByScreenScaleY | primitive | verified, proof one | ✓ | ✓ |
Globals 4
| address | name | type | confidence |
|---|---|---|---|
0x832a40 | s_screenAspect | float | verified, proof two |
0x832a44 | s_screenScaleX | float | verified, proof two |
0x832a48 | s_screenScaleY | float | verified, proof two |
0x832a4c | s_screenAspectScaled | float | verified, proof two |