From 7a1b387aa9aebab9c12e4111268ccbbedb83d08b Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 26 Feb 2024 15:56:01 +0100 Subject: [PATCH] mac: set layer content scale on init usually the content scale updates automatically, though on init it is possible the wrong scale is used for the initial rendering leading to a wrongly sized surface. properly set the initial content scale of the layer. --- video/out/mac/common.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index cdf0578fab..03d5c5bc25 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -116,6 +116,8 @@ class Common: NSObject { window.makeMain() window.makeKey() + view.layer?.contentsScale = window.backingScaleFactor + if !minimized { window.orderFront(nil) }