summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-04 22:52:51 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-07 23:59:02 +0100
commit8f847437a95a89eb078093d530dcb88790344178 (patch)
tree7b746543767e4d108c9d91c3b30f66c4e23b2d52
parent487fcea6f47297f747a0ffe2f859e59098c37692 (diff)
downloadmpv-8f847437a95a89eb078093d530dcb88790344178.tar.bz2
mpv-8f847437a95a89eb078093d530dcb88790344178.tar.xz
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.
-rw-r--r--video/out/cocoa_common.m4
1 files changed, 3 insertions, 1 deletions
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 {