mirror of https://github.com/mpv-player/mpv
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:
parent
c1e97161f4
commit
bc1b9aa984
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue