mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
a7c4a113b8
commit
7a1b387aa9
|
@ -116,6 +116,8 @@ class Common: NSObject {
|
||||||
window.makeMain()
|
window.makeMain()
|
||||||
window.makeKey()
|
window.makeKey()
|
||||||
|
|
||||||
|
view.layer?.contentsScale = window.backingScaleFactor
|
||||||
|
|
||||||
if !minimized {
|
if !minimized {
|
||||||
window.orderFront(nil)
|
window.orderFront(nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue