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:
parent
ec61179b84
commit
403037c0da
@ -39,6 +39,11 @@ namespace
|
|||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
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);
|
CALL_ORIG_FUNC(SetLayeredWindowAttributes)(presentationWindow, 0, 255, LWA_ALPHA);
|
||||||
return reinterpret_cast<LRESULT>(presentationWindow);
|
return reinterpret_cast<LRESULT>(presentationWindow);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user