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:
parent
317083d409
commit
6ae1137d91
1 changed files with 4 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue