1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 11:42:04 +00:00

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.
This commit is contained in:
Stefano Pigozzi 2014-12-04 22:52:51 +01:00
parent c1e97161f4
commit bc1b9aa984

View File

@ -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 {