[vlc-devel] [PATCH] macosx: Change OR_LOWER macro to OR_HIGHER

Marvin Scholz epirat07 at gmail.com
Sat Oct 15 15:39:20 CEST 2016


---
 modules/gui/macosx/CompatibilityFixes.h   | 2 +-
 modules/gui/macosx/VLCFSPanelController.m | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h
index 2c7a297..0c3e669 100644
--- a/modules/gui/macosx/CompatibilityFixes.h
+++ b/modules/gui/macosx/CompatibilityFixes.h
@@ -32,7 +32,7 @@
 #define OSX_EL_CAPITAN (NSAppKitVersionNumber >= 1404 && NSAppKitVersionNumber < 1485)
 #define OSX_SIERRA (NSAppKitVersionNumber >= 1485)
 
-#define OSX_MAVERICKS_OR_LOWER (NSAppKitVersionNumber < 1334)
+#define OSX_YOSEMITE_OR_HIGHER (NSAppKitVersionNumber >= 1334)
 
 // Sierra only APIs
 #ifndef MAC_OS_X_VERSION_10_12
diff --git a/modules/gui/macosx/VLCFSPanelController.m b/modules/gui/macosx/VLCFSPanelController.m
index 83c60d6..2cb33e5 100644
--- a/modules/gui/macosx/VLCFSPanelController.m
+++ b/modules/gui/macosx/VLCFSPanelController.m
@@ -61,10 +61,10 @@ - (void)windowDidLoad
 
 #ifdef MAC_OS_X_VERSION_10_10
     /* Inject correct background view depending on OS support */
-    if (OSX_MAVERICKS_OR_LOWER) {
-        [self injectBackgroundView];
-    } else {
+    if (OSX_YOSEMITE_OR_HIGHER) {
         [self injectVisualEffectView];
+    } else {
+        [self injectBackgroundView];
     }
 #else
     /* Compiled with old SDK, always use legacy style */
-- 
2.8.4 (Apple Git-73)



More information about the vlc-devel mailing list