From 7bd612ee66eac374d0b607e5f36e3afb8ce5cf1f Mon Sep 17 00:00:00 2001 From: der richter Date: Sat, 5 Oct 2024 15:07:33 +0200 Subject: [PATCH] mac: remove unnecessary window size change check this is already done in the updateSize method of the window. also fixes an issue where the size wasn't properly changed, even though the new and old size were different. the unfsContentFrame should have been checked instead of the pixel representation of the same frame. --- video/out/mac_common.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 12c499a813..d853c9c04a 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -60,7 +60,7 @@ class MacCommon: Common { initWindowState() } - if (window?.unfsContentFramePixel.size ?? NSSize.zero) != wr.size && option.vo.auto_window_resize { + if option.vo.auto_window_resize { window?.updateSize(wr.size) }