1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-07 16:54:14 +01:00

[d3d9] Send WM_ACTIVATEAPP messsage on WM_SIZE.

This commit is contained in:
Paul Gofman 2021-11-29 22:52:09 +03:00 committed by Joshie
parent 1abd205216
commit b672c07a93

View File

@ -144,6 +144,14 @@ namespace dxvk {
}
}
}
else if (message == WM_SIZE)
{
D3DDEVICE_CREATION_PARAMETERS create_parms;
windowData.swapchain->GetDevice()->GetCreationParameters(&create_parms);
if (!(create_parms.BehaviorFlags & D3DCREATE_NOWINDOWCHANGES) && !IsIconic(window))
PostMessageW(window, WM_ACTIVATEAPP, 1, GetCurrentThreadId());
}
return CallCharsetFunction(
CallWindowProcW, CallWindowProcA, unicode,