diff options
author | der richter <der.richter@gmx.de> | 2020-02-08 11:00:55 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-02-08 11:00:55 +0100 |
commit | 5d7f0edfebb9829eb167770f943970203bdf63c0 (patch) | |
tree | 05da3022a69bac9ae82940e871f7cebee89f81c9 /video/out/cocoa-cb | |
parent | 3ad9c32a5fabdfb1ca0a8e5766704042dfa995e6 (diff) | |
download | mpv-5d7f0edfebb9829eb167770f943970203bdf63c0.tar.bz2 mpv-5d7f0edfebb9829eb167770f943970203bdf63c0.tar.xz |
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.
Diffstat (limited to 'video/out/cocoa-cb')
-rw-r--r-- | video/out/cocoa-cb/title_bar.swift | 4 |
1 files changed, 4 insertions, 0 deletions
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 } } |