From ab6e82debed90ea4f80af484160d16a95f871f7e Mon Sep 17 00:00:00 2001 From: Brian Gontowski Date: Tue, 18 Jul 2023 20:10:57 +0900 Subject: [PATCH] Added workaround for white flash when controls load --- FlashProxy/FlashProxy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FlashProxy/FlashProxy.cpp b/FlashProxy/FlashProxy.cpp index ac45447..bfd92a1 100644 --- a/FlashProxy/FlashProxy.cpp +++ b/FlashProxy/FlashProxy.cpp @@ -146,6 +146,8 @@ FlashProxyModule::FlashProxyModule(): m_visible(false), m_hidden(false) { + SetEnvironmentVariable(L"WEBVIEW2_DEFAULT_BACKGROUND_COLOR", L"0x00000000"); + WNDCLASSEX childClass = {0}; childClass.cbSize = sizeof(WNDCLASSEX); childClass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;