mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
#304 - Limit window size to max surface size (Dune2000 1.02)
This commit is contained in:
parent
9d4f3b148b
commit
6dc8390fed
@ -1357,6 +1357,13 @@ HWND WINAPI fake_CreateWindowExA(
|
|||||||
dwStyle |= WS_CLIPCHILDREN;
|
dwStyle |= WS_CLIPCHILDREN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
}
|
||||||
|
|
||||||
return real_CreateWindowExA(
|
return real_CreateWindowExA(
|
||||||
dwExStyle,
|
dwExStyle,
|
||||||
lpClassName,
|
lpClassName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user