mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Revert "another fix for aero snap"
This reverts commit d0cf8c64619a5702d11fd28366c3b69096494fdc.
This commit is contained in:
parent
d875c33822
commit
7bc89de926
@ -465,8 +465,31 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
|
|
||||||
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
|
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
|
||||||
}
|
}
|
||||||
|
case WM_NCMOUSELEAVE:
|
||||||
|
{
|
||||||
|
if (!g_ddraw->wine) /* hack: disable aero snap */
|
||||||
|
{
|
||||||
|
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
|
||||||
|
|
||||||
|
if (!(style & WS_MAXIMIZEBOX))
|
||||||
|
{
|
||||||
|
real_SetWindowLongA(g_ddraw->hwnd, GWL_STYLE, style | WS_MAXIMIZEBOX);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
{
|
{
|
||||||
|
if ((wParam & ~0x0F) == SC_MOVE && !g_ddraw->wine) /* hack: disable aero snap */
|
||||||
|
{
|
||||||
|
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
|
||||||
|
|
||||||
|
if ((style & WS_MAXIMIZEBOX))
|
||||||
|
{
|
||||||
|
real_SetWindowLongA(g_ddraw->hwnd, GWL_STYLE, style & ~WS_MAXIMIZEBOX);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (wParam == SC_MAXIMIZE)
|
if (wParam == SC_MAXIMIZE)
|
||||||
{
|
{
|
||||||
if (g_ddraw->resizable)
|
if (g_ddraw->resizable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user