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:
parent
a07fec08e0
commit
30618755a1
15
src/main.c
15
src/main.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user