summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-03-02 19:27:37 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-03-04 19:08:45 -0800
commit4d281927e5c5ad811501c7ec00065c62a75958a5 (patch)
tree4aaaf2ca089b91d7bd582469967e551d4cc496aa /video/out
parent8bfeecbc6ff1c95682b908a7e4beb87dd83fb3b7 (diff)
downloadmpv-4d281927e5c5ad811501c7ec00065c62a75958a5.tar.bz2
mpv-4d281927e5c5ad811501c7ec00065c62a75958a5.tar.xz
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.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/cocoa-cb/window.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift
index 74b9dcd5f5..e413dbfa6d 100644
--- a/video/out/cocoa-cb/window.swift
+++ b/video/out/cocoa-cb/window.swift
@@ -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)
}
}