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

allow negative values for window width/height

This commit is contained in:
FunkyFr3sh 2024-04-16 02:54:40 +02:00
parent 6dc8390fed
commit 36bf42af6f

View File

@ -1360,8 +1360,8 @@ HWND WINAPI fake_CreateWindowExA(
/* Limit window size to max surface size (Dune2000 1.02) */
if (dwStyle & WS_POPUP)
{
nWidth = min((DWORD)nWidth, (DWORD)16384);
nHeight = min((DWORD)nHeight, (DWORD)16384);
nWidth = min(nWidth, 16384);
nHeight = min(nHeight, 16384);
}
return real_CreateWindowExA(