GxWindowProcOpenGl
function · gx · host
- Address
0x58c6d0· 820 bytes, up to0x58ca03- Signature
intptr_t __stdcall (void *hwnd, uint32_t msg, uintptr_t wParam, intptr_t lParam)- Meaning
- Handles the OpenGL device window's messages, sizing the drag rectangle as the Direct3D procedure does
- Confidence
- verified, proof one
- Finding
- gx/window#window-sizing
Finding: Window sizing in gx: window
On WM_SIZING both procedures adjust the drag rectangle lParam points to (the whole window, in
screen coordinates) in place and return 1; one of zero width or height returns 0 unchanged. On
{top, left, bottom, right}, with the ratio r = [0xc0ef60] (width over height of the format,
0 unless it constrains the aspect, device.md) and the minimum 320 by 240 (0xc0ef64, 0xc0ef68), the
dragged edge runs these steps in order; any other wParam changes nothing.
wParam | edge | steps |
|---|---|---|
| 1 | left | min left, fit top |
| 2 | right | min right, fit bottom |
| 3 | top | min top, fit left |
| 4 | top left | min top, min left, fit top, fit left |
| 5 | top right | min top, min right, fit top, fit right |
| 6 | bottom | min bottom, fit right |
| 7 | bottom left | min bottom, min left, fit left, fit bottom |
| 8 | bottom right | min bottom, min right, fit bottom, fit right |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- SizingRectFitTop gx
- SizingRectFitBottom gx
- SizingRectFitLeft gx
- SizingRectFitRight gx
- SizingRectMinLeft gx
- SizingRectMinRight gx
- SizingRectMinTop gx
- SizingRectMinBottom gx
- 0x592220 gx
Calls and jumps by a bare address, from tables/calls.tsv.