From 4d281927e5c5ad811501c7ec00065c62a75958a5 Mon Sep 17 00:00:00 2001 From: Akemi Date: Fri, 2 Mar 2018 19:27:37 +0100 Subject: 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. --- video/out/cocoa-cb/window.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } -- cgit v1.2.3