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:
der richter 2024-02-26 15:56:01 +01:00
parent a7c4a113b8
commit 7a1b387aa9
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ class Common: NSObject {
window.makeMain()
window.makeKey()
view.layer?.contentsScale = window.backingScaleFactor
if !minimized {
window.orderFront(nil)
}