1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +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) if (g_config.resizable)
{ {
util_toggle_maximize(); util_toggle_maximize();