File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2054,9 +2054,9 @@ static void ImGui_ImplWin32_InitPlatformInterface(bool platform_has_own_dc)
2054
2054
wcex.hInstance = ::GetModuleHandle (nullptr );
2055
2055
wcex.hIcon = nullptr ;
2056
2056
wcex.hCursor = nullptr ;
2057
- wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1 );
2058
- wcex.lpszMenuName = nullptr ;
2059
2057
#ifdef SKIF_Win32
2058
+ wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1 ); // COLOR_BACKGROUND is unsupported on Win10+
2059
+ wcex.lpszMenuName = nullptr ;
2060
2060
wcex.lpszClassName = SKIF_ImGui_WindowClass;
2061
2061
HMODULE hModHost =
2062
2062
::GetModuleHandle (nullptr );
@@ -2065,6 +2065,8 @@ static void ImGui_ImplWin32_InitPlatformInterface(bool platform_has_own_dc)
2065
2065
wcex.hIconSm =
2066
2066
LoadIcon (hModHost, MAKEINTRESOURCE (IDI_SKIF));
2067
2067
#else
2068
+ wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1 );
2069
+ wcex.lpszMenuName = nullptr ;
2068
2070
wcex.lpszClassName = _T (" ImGui Platform" );;
2069
2071
wcex.hIconSm = nullptr ;
2070
2072
#endif // SKIF_Win32
You can’t perform that action at this time.
0 commit comments