This commit is contained in:
CANTENOT Thierry 2025-08-29 17:36:08 +02:00 committed by GitHub
commit a033946af8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1103,17 +1103,23 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l
else else
AdjustWindowRectEx(&frame, style, FALSE, exStyle); AdjustWindowRectEx(&frame, style, FALSE, exStyle);
if (window->minwidth != GLFW_DONT_CARE && if (window->minwidth != GLFW_DONT_CARE)
window->minheight != GLFW_DONT_CARE)
{ {
mmi->ptMinTrackSize.x = window->minwidth + frame.right - frame.left; mmi->ptMinTrackSize.x = window->minwidth + frame.right - frame.left;
}
if (window->minheight != GLFW_DONT_CARE)
{
mmi->ptMinTrackSize.y = window->minheight + frame.bottom - frame.top; mmi->ptMinTrackSize.y = window->minheight + frame.bottom - frame.top;
} }
if (window->maxwidth != GLFW_DONT_CARE && if (window->maxwidth != GLFW_DONT_CARE)
window->maxheight != GLFW_DONT_CARE)
{ {
mmi->ptMaxTrackSize.x = window->maxwidth + frame.right - frame.left; mmi->ptMaxTrackSize.x = window->maxwidth + frame.right - frame.left;
}
if (window->maxheight != GLFW_DONT_CARE)
{
mmi->ptMaxTrackSize.y = window->maxheight + frame.bottom - frame.top; mmi->ptMaxTrackSize.y = window->maxheight + frame.bottom - frame.top;
} }