1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MinGW: Fix Windows build

This commit is contained in:
reuk 2021-10-18 21:37:37 +01:00
parent 317083d409
commit 6ae1137d91
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -715,7 +715,9 @@ static void setWindowZOrder (HWND hwnd, HWND insertAfter)
}
//==============================================================================
#if ! JUCE_MINGW
extern RTL_OSVERSIONINFOW getWindowsVersionInfo();
#endif
double Desktop::getDefaultMasterScale()
{
@ -735,6 +737,7 @@ class Desktop::NativeDarkModeChangeDetectorImpl
public:
NativeDarkModeChangeDetectorImpl()
{
#if ! JUCE_MINGW
const auto winVer = getWindowsVersionInfo();
if (winVer.dwMajorVersion >= 10 && winVer.dwBuildNumber >= 17763)
@ -751,6 +754,7 @@ public:
darkModeEnabled = shouldAppsUseDarkMode() && ! isHighContrast();
}
}
#endif
}
bool isDarkModeEnabled() const noexcept { return darkModeEnabled; }