fix fake_SetWindowPos
This commit is contained in:
parent
f4375f60c4
commit
72cd07bd3a
1 changed files with 3 additions and 1 deletions
|
@ -370,7 +370,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)
|
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 TRUE;
|
||||||
|
|
||||||
return real_SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);
|
return real_SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue