From 5d7f0edfebb9829eb167770f943970203bdf63c0 Mon Sep 17 00:00:00 2001 From: der richter Date: Sat, 8 Feb 2020 11:00:55 +0100 Subject: cocoa-cb: fix auto-selection of title bar style with older SDKs returning a nil value only works when build with a +10.14 SDK otherwise we need to fallback to the old mechanism. --- video/out/cocoa-cb/title_bar.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/cocoa-cb/title_bar.swift b/video/out/cocoa-cb/title_bar.swift index 20812e9029..98367e5d1c 100644 --- a/video/out/cocoa-cb/title_bar.swift +++ b/video/out/cocoa-cb/title_bar.swift @@ -199,7 +199,11 @@ class TitleBar: NSVisualEffectView { return NSAppearance(named: .accessibilityHighContrastVibrantDark) case "0", "auto": fallthrough default: +#if HAVE_MACOS_10_14_FEATURES return nil +#else + break +#endif } } -- cgit v1.2.3