1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +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,
@ -1370,4 +1378,4 @@ namespace dxvk {
return this->GetParent()->IsExtended() ? "D3D9Ex" : "D3D9";
}
}
}