From 92ba581e28702b3ceb2df77f7aa0bcc31cd16bb5 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 10 Jul 2023 23:55:44 +0200 Subject: [PATCH] send WM_SIZE on MoveWindow --- src/winapi_hooks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index cfd28e7..87cf051 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -357,6 +357,8 @@ BOOL WINAPI fake_MoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BO { if (g_ddraw->hwnd == hWnd) { + real_SendMessageA(g_ddraw->hwnd, WM_SIZE_DDRAW, 0, MAKELPARAM(nWidth, nHeight)); + return TRUE; } else if (!IsChild(g_ddraw->hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))