Browse Source

macOS: Fixed a crash on versions before 10.9

tags/2021-05-28
ed 6 years ago
parent
commit
6ff5af9c43
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 3
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -123,7 +123,9 @@ public:
if (! [window isOpaque])
[window setBackgroundColor: [NSColor clearColor]];
[view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]];
#if defined (MAC_OS_X_VERSION_10_9) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)
[view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]];
#endif
#endif
[window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)];


Loading…
Cancel
Save