From 8f847437a95a89eb078093d530dcb88790344178 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 4 Dec 2014 22:52:51 +0100 Subject: cocoa: don't async redraw when waiting for VO redraw This fixes the very annoying glitch where the black bars disappear for a single frame when going fullscreen. --- video/out/cocoa_common.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 4ac6433f84..e11ea9a59f 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -731,7 +731,9 @@ void *vo_cocoa_cgl_pixel_format(struct vo *vo) @synthesize vout = _video_output; - (void)performAsyncResize:(NSSize)size { - vo_cocoa_resize_redraw(self.vout, size.width, size.height); + struct vo_cocoa_state *s = self.vout->cocoa; + if (!s->waiting_frame) + vo_cocoa_resize_redraw(self.vout, size.width, size.height); } - (BOOL)keyboardEnabled { -- cgit v1.2.3