From 403037c0da0cc510098300a2844a0258c0b68d22 Mon Sep 17 00:00:00 2001 From: narzoul Date: Tue, 18 Dec 2018 14:47:46 +0100 Subject: [PATCH] Workaround for ForceSimpleWindow shim --- DDrawCompat/Gdi/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DDrawCompat/Gdi/Window.cpp b/DDrawCompat/Gdi/Window.cpp index 90b20ec..a9b8eb0 100644 --- a/DDrawCompat/Gdi/Window.cpp +++ b/DDrawCompat/Gdi/Window.cpp @@ -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(presentationWindow); }