mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix fake_SetWindowPos
This commit is contained in:
parent
122dca8216
commit
cbebdd4160
@ -374,7 +374,9 @@ int WINAPI fake_GetSystemMetrics(int nIndex)
|
||||
|
||||
BOOL WINAPI fake_SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
|
||||
{
|
||||
if (ddraw && ddraw->hWnd == hWnd)
|
||||
UINT reqFlags = SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER;
|
||||
|
||||
if (ddraw && ddraw->hWnd == hWnd && (uFlags & reqFlags) != reqFlags)
|
||||
return TRUE;
|
||||
|
||||
return real_SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user