diff options
author | der richter <der.richter@gmx.de> | 2024-02-26 15:56:01 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-27 14:02:08 +0100 |
commit | 7a1b387aa9aebab9c12e4111268ccbbedb83d08b (patch) | |
tree | 7c7dd399cf1f5a672749fae1d5e8035b3992cc75 | |
parent | a7c4a113b82dc57641c08e1da5c3df9acb704be4 (diff) | |
download | mpv-7a1b387aa9aebab9c12e4111268ccbbedb83d08b.tar.bz2 mpv-7a1b387aa9aebab9c12e4111268ccbbedb83d08b.tar.xz |
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.
-rw-r--r-- | video/out/mac/common.swift | 2 |
1 files changed, 2 insertions, 0 deletions
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) } |