From bc1b9aa9842f6008242d1b653b63b1d580df9fab 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(-) (limited to 'video/out') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index dca4290d07..76114a12eb 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -720,7 +720,9 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) @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