s_glueScreenWidth
global · glue
- Address
0xb41e1c· 4 bytes, up to0xb41e1f- Type
int32_t- Meaning
- Holds the screen width the build or 0x46abe0 last stored, truncated
- Confidence
- verified, proof one
- Finding
- glue/manager#screen-size-and-aspect
Finding: Screen size and aspect in glue: the manager
The build stores the screen's width and height, truncated, at 0xb41e1c and 0xb41e20, and the
aspect 0x46ab40 gives at 0xb41e24, then sets it as the screen's aspect (0x41ad10).
0x46ab40 is gxResolution's %d%c%d width over height while widescreen is nonzero, else
4/3. The top's size callback 0x46abe0 returns 1 at once when the stored width and height are
positive and equal the event's; otherwise it stores them, gets the aspect, gives GlueParent, when it
is a frame, scale 1.0 forced and updates the layout, and, when the aspect differs from 0xb41e24 by 0.01 or more
or the difference is NaN, stores it and requests a rebuild (0xb41d8c).
The derivation is in the doc.