CheckGlueScreenSize
function · glue · primitive
- Address
0x46abe0· 175 bytes, up to0x46ac8e- Signature
uint32_t __thiscall (void *this)- Meaning
- Stores a new screen size, lays GlueParent out again and requests a rebuild when the aspect moves by 0.01 or more
- Confidence
- verified, proof one
- Finding
- glue/manager#screen-size-and-aspect
- Test
glue::glue_onresize_difftest
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.
Callers 1
- CGlueMgr::Initialize glue
Callees 4
- GetScreenAspect glue
- LayoutPendingFrames ui
- SetFrameScale ui
- FindFrameOfType ui
Calls and jumps by a bare address, from tables/calls.tsv.