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

do not never forward SC_MAXIMIZE to the game in wine

This commit is contained in:
FunkyFr3sh 2024-10-06 21:33:37 +02:00
parent 4fdc98ef28
commit 92df1257bd

View File

@ -576,8 +576,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
}
}
if (wParam == SC_MAXIMIZE && !IsWine())
if (wParam == SC_MAXIMIZE)
{
if (IsWine())
return DefWindowProc(hWnd, uMsg, wParam, lParam);
if (g_config.resizable)
{
util_toggle_maximize();