update ShowWindow hook

This commit is contained in:
FunkyFr3sh 2023-07-10 22:08:50 +02:00
parent 0f37251d64
commit 19d1d4f942
3 changed files with 25 additions and 0 deletions

View file

@ -766,6 +766,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
LONG exstyle = real_GetWindowLongA(g_ddraw->hwnd, GWL_EXSTYLE);
g_ddraw->invisible = !(style & WS_VISIBLE);
AdjustWindowRectEx(&dst, style, GetMenu(g_ddraw->hwnd) != NULL, exstyle);
real_SetWindowPos(
@ -802,6 +804,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
g_ddraw->invisible = !(style & WS_VISIBLE);
DWORD swp_flags = SWP_SHOWWINDOW;
if ((style & WS_CAPTION))