don't use WM_GETMINMAXINFO to prevent possible bugs later on
This commit is contained in:
parent
a07fec08e0
commit
30618755a1
1 changed files with 0 additions and 15 deletions
15
src/main.c
15
src/main.c
|
@ -725,21 +725,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case WM_SIZING:
|
||||||
{
|
{
|
||||||
RECT *windowrc = (RECT *)lParam;
|
RECT *windowrc = (RECT *)lParam;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue