summaryrefslogtreecommitdiffstats
path: root/video/out/mac/common.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-06 22:02:43 +0100
committerJan Ekström <jeebjp@gmail.com>2024-03-06 23:37:32 +0200
commit68c61fd89f4c825ac559589458f406b4c92d04c6 (patch)
tree20995859f86a1f0f2a8fd5005515dbfe4c3bf403 /video/out/mac/common.swift
parent6016423427ffdad29841093a588c57374c2ad108 (diff)
downloadmpv-68c61fd89f4c825ac559589458f406b4c92d04c6.tar.bz2
mpv-68c61fd89f4c825ac559589458f406b4c92d04c6.tar.xz
mac/vulkan: directly retrieve current render size without caching
the render size cached in ctx->vo->dwidth/dheight can be outdated in some circumstances at the time the context needs resizing. instead use the current render size.
Diffstat (limited to 'video/out/mac/common.swift')
-rw-r--r--video/out/mac/common.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift
index 8e7aab75ec..7b6fa48b5d 100644
--- a/video/out/mac/common.swift
+++ b/video/out/mac/common.swift
@@ -23,7 +23,7 @@ class Common: NSObject {
var log: LogHelper
let queue: DispatchQueue = DispatchQueue(label: "io.mpv.queue")
- var window: Window?
+ @objc var window: Window?
var view: View?
var titleBar: TitleBar?