mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
restore secondary check just to be sure
This commit is contained in:
parent
a465d1429b
commit
eab5dc43fa
@ -260,7 +260,7 @@ BOOL WINAPI fake_SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int
|
|||||||
if ((uFlags & req_flags) != req_flags)
|
if ((uFlags & req_flags) != req_flags)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
else if (!IsChild(g_ddraw->hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
||||||
{
|
{
|
||||||
POINT pt = { 0, 0 };
|
POINT pt = { 0, 0 };
|
||||||
if (real_ClientToScreen(g_ddraw->hwnd, &pt))
|
if (real_ClientToScreen(g_ddraw->hwnd, &pt))
|
||||||
@ -282,7 +282,7 @@ BOOL WINAPI fake_MoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BO
|
|||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
else if (!IsChild(g_ddraw->hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
||||||
{
|
{
|
||||||
POINT pt = { 0, 0 };
|
POINT pt = { 0, 0 };
|
||||||
if (real_ClientToScreen(g_ddraw->hwnd, &pt))
|
if (real_ClientToScreen(g_ddraw->hwnd, &pt))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user