CGxDeviceD3d::HandleWindowEvent
function · gx · host
- Address
0x59a1c0· 257 bytes, up to0x59a2c0- Signature
void __thiscall (CGxDeviceD3d *this, uint32_t event, const float *rect, uint32_t sizeType)- Meaning
- Follows a window event, resetting the device on a resize while active
- Confidence
- verified, proof one
- Finding
- gx/slots#window-events
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 5
- CGxDevice::SetWindowRects gx
- CGxDeviceD3d::BuildPresentParameters gx
- 0x599900 gx
- 0x599d50 gx
- 0x5a24a0 gx
Calls and jumps by a bare address, from tables/calls.tsv.