mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
The refresh callback is triggered by WM_PAINT, but windows does not send it while a border is dragged: the window class has neither CS_HREDRAW nor CS_VREDRAW and nothing invalidates the client area. Only WM_SIZE arrives, so nothing was drawn during such a resize. The frame is drawn from WM_SIZE now, after forwarding the message to GLFW so that the new size is already in. WM_NCHITTEST re-applies the style bits the engine frame needs and which GLFW drops on every window mode change, taking the drag area with them. Every frame setup logs whether the subclass had to be installed again, so a lost window procedure is visible in the log. The live resize switch is honoured by the GLFW backend as well: with it off the frame from the message loop is skipped and the window keeps showing what the system stretches. |
||
|---|---|---|
| .. | ||
| config | ||
| content/base | ||
| devtools | ||
| fonts | ||
| generators | ||
| layouts | ||
| models | ||
| modules | ||
| presets | ||
| scripts | ||
| shaders | ||
| texts | ||
| textures | ||
| preload.json | ||
| project.toml | ||
| project_client.lua | ||
| resources.json | ||