1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

cocoa-cb: fix wrong aspect ratio on live resize after reconfig resize

on a file change and when the aspect ratio of the window changed, the
first live resize state had a wrong aspect ratio because the new aspect
ratio was only set after the first resize. just set the new content
frame before the resize.
This commit is contained in:
Akemi 2018-03-02 19:27:37 +01:00 committed by Kevin Mitchell
parent 8bfeecbc6f
commit 4d281927e5

View File

@ -367,8 +367,8 @@ class Window: NSWindow, NSWindowDelegate {
func updateFrame(_ rect: NSRect) {
if rect != frame {
let cRect = frameRect(forContentRect: rect)
setFrame(cRect, display: true)
unfsContentFrame = rect
setFrame(cRect, display: true)
}
}