diff --git a/TFMain/MenuAnimation.cpp b/TFMain/MenuAnimation.cpp index 149ecfe..498e450 100644 --- a/TFMain/MenuAnimation.cpp +++ b/TFMain/MenuAnimation.cpp @@ -514,7 +514,28 @@ namespace TranslucentFlyouts::MenuAnimation ) { SetClassLongPtr(window, GCL_STYLE, GetClassLongPtr(window, GCL_STYLE) | (CS_DROPSHADOW | CS_SAVEBITS)); + + DWORD effectType + { + RegHelper::GetDword( + L"Menu", + L"EffectType", + static_cast(EffectHelper::EffectType::ModernAcrylicBlur) + ) + }; + if ( + RegHelper::GetDword( + L"Menu", + L"EnableDropShadow", + 0 + ) && + (effectType == 4 || effectType == 5) + ) + { + EffectHelper::SetWindowBackdrop(window, TRUE, 0, 4); + } } + menuHandler.HandleSysBorderColors(L"Menu"sv, window, info.useDarkMode, info.borderColor); EffectHelper::EnableWindowDarkMode(window, info.useDarkMode); diff --git a/TFMain/Utils.hpp b/TFMain/Utils.hpp index 7be91d1..fe5dd7c 100644 --- a/TFMain/Utils.hpp +++ b/TFMain/Utils.hpp @@ -44,7 +44,7 @@ namespace TranslucentFlyouts static inline std::optional RoInit() { - HRESULT hr{::RoInitialize(RO_INIT_MULTITHREADED)}; + HRESULT hr{::RoInitialize(RO_INIT_SINGLETHREADED)}; if (SUCCEEDED(hr) || hr == S_FALSE) {