benilla-re systems structs docs

CGxDeviceOpenGl::HandleWindowEvent

function · gx · primitive

Address
0x58ca60 · 316 bytes, up to 0x58cb9b
Signature
void __thiscall (CGxDeviceOpenGl *this, uint32_t event, const float *rect, uint32_t sizeType)
Meaning
Follows a window event: size, display change, destroy, focus gained or lost
Confidence
verified, proof one
Finding
gx/slots#window-events
Test
gx::rect_b_smaller_matches_binary

Finding: Window events in gx: the device's virtual slots

Both window procedures pass five events to slot +0x50 with a rectangle and a size type: 0 on WM_SIZE (type 1 minimised, 2 SIZE_MAXHIDE) and on a full-screen deactivation (type 1), 1 on a full-screen WM_DISPLAYCHANGE, 2 on WM_DESTROY, 3 on WM_SETFOCUS, 4 on WM_KILLFOCUS. Event 0 of type 1 or 2 clears the active flag +0xf30; any other sets it, stores the window and draw rectangles and dirties the viewport, then Direct3D, when ready, resets its device and OpenGL remakes its pbuffer if the window grew. In full screen OpenGL takes the format's display mode, maximised with the pointer clipped, on event 3, and restores the desktop mode, minimised, on 2 and 4; Direct3D clips the pointer on 3.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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