diff options
author | der richter <der.richter@gmx.de> | 2024-03-27 23:22:56 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-29 14:20:40 +0100 |
commit | ba45f2004f568455a1b3f846516dc2614737eff8 (patch) | |
tree | 784e6563bb369ed9aad3ec28c678da1f69a92246 /video/out | |
parent | 7c86074a1574d6e79876ce1dd2fc5000f35a913b (diff) | |
download | mpv-ba45f2004f568455a1b3f846516dc2614737eff8.tar.bz2 mpv-ba45f2004f568455a1b3f846516dc2614737eff8.tar.xz |
mac: cleanup swift bridge header imports and unify them
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/mac/common.swift | 4 | ||||
-rw-r--r-- | video/out/mac/metal_layer.swift | 1 | ||||
-rw-r--r-- | video/out/vulkan/context_mac.m | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 2bcf9dee44..d507a388aa 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -626,8 +626,8 @@ class Common: NSObject { var count: Int32 = 0 let displayName = getCurrentScreen()?.localizedName ?? "Unknown" - SWIFT_TARRAY_STRING_APPEND(nil, &array, &count, ta_xstrdup(nil, displayName)) - SWIFT_TARRAY_STRING_APPEND(nil, &array, &count, nil) + app_bridge_tarray_append(nil, &array, &count, ta_xstrdup(nil, displayName)) + app_bridge_tarray_append(nil, &array, &count, nil) dnames.pointee = array return VO_TRUE case VOCTRL_GET_DISPLAY_RES: diff --git a/video/out/mac/metal_layer.swift b/video/out/mac/metal_layer.swift index 9d2b5bd353..7fc419af4b 100644 --- a/video/out/mac/metal_layer.swift +++ b/video/out/mac/metal_layer.swift @@ -16,6 +16,7 @@ */ import Cocoa +import QuartzCore class MetalLayer: CAMetalLayer { unowned var common: MacCommon diff --git a/video/out/vulkan/context_mac.m b/video/out/vulkan/context_mac.m index 5621e6dca3..be5c077155 100644 --- a/video/out/vulkan/context_mac.m +++ b/video/out/vulkan/context_mac.m @@ -15,6 +15,8 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ +#import <QuartzCore/QuartzCore.h> + #include "video/out/gpu/context.h" #include "osdep/mac/swift.h" |