Skip to content

Commit

Permalink
allow negative values for window width/height
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Apr 16, 2024
1 parent 6dc8390 commit 36bf42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 36bf42a

Please sign in to comment.