From 1caa653f2d8a76f97a009cf329b9f37f2af69abb Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 24 Dec 2019 20:08:00 +0100 Subject: cocoa-cb: force redraw when screen or size changes in certain circumstances the video was not redrawn even when the size or the backing scale factor changed. this could lead to a lower resolution output than intended. now it redraws the video when screen properties or the window size changes. --- video/out/cocoa-cb/window.swift | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index 55c0fa1688..25f144a38e 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -301,6 +301,7 @@ class Window: NSWindow, NSWindowDelegate { let cRect = frameRect(forContentRect: rect) unfsContentFrame = rect setFrame(cRect, display: true) + cocoaCB.layer?.update(force: true) } } @@ -464,6 +465,7 @@ class Window: NSWindow, NSWindowDelegate { } if currentScreen != screen { cocoaCB.updateDisplaylink() + cocoaCB.layer?.update(force: true) } currentScreen = screen } -- cgit v1.2.3