1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

don't use WM_GETMINMAXINFO to prevent possible bugs later on

This commit is contained in:
FunkyFr3sh 2018-10-28 08:01:31 +01:00
parent a07fec08e0
commit 30618755a1

View File

@ -725,21 +725,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
break;
}
case WM_GETMINMAXINFO:
{
LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam;
if (ddraw)
{
RECT rect = { 0, 0, ddraw->width, ddraw->height };
AdjustWindowRectEx(&rect, GetWindowLong(hWnd, GWL_STYLE), FALSE, GetWindowLong(hWnd, GWL_EXSTYLE));
lpMMI->ptMinTrackSize.x = rect.right - rect.left;
lpMMI->ptMinTrackSize.y = rect.bottom - rect.top;
return 0;
}
break;
}
case WM_SIZING:
{
RECT *windowrc = (RECT *)lParam;