Browse Source

MinGW: Fix Windows build

v6.1.6
reuk 4 years ago
parent
commit
6ae1137d91
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 4
- 0
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

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


Loading…
Cancel
Save