1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Workaround for ForceSimpleWindow shim

This commit is contained in:
narzoul 2018-12-18 14:47:46 +01:00
parent ec61179b84
commit 403037c0da

View File

@ -39,6 +39,11 @@ namespace
nullptr,
nullptr,
nullptr);
// Workaround for ForceSimpleWindow shim
SetWindowLong(presentationWindow, GWL_STYLE, WS_DISABLED | WS_POPUP);
SetWindowLong(presentationWindow, GWL_EXSTYLE, WS_EX_LAYERED | WS_EX_TRANSPARENT);
CALL_ORIG_FUNC(SetLayeredWindowAttributes)(presentationWindow, 0, 255, LWA_ALPHA);
return reinterpret_cast<LRESULT>(presentationWindow);
}