gl/cocoa: Handle NSView::renewGState() properly

Don't update the screen until we redraw, this prevents flickering during
scrolling, clipping, resizing, etc
This commit is contained in:
Sebastian Dröge 2014-10-01 11:55:13 +03:00
parent 3953b8e419
commit 061d55f535

View file

@ -549,6 +549,16 @@ resize_cb (gpointer data)
gst_object_unref (context);
}
- (void)renewGState {
/* Don't update the screen until we redraw, this
* prevents flickering during scrolling, clipping,
* resizing, etc
*/
[[self window] disableScreenUpdatesUntilFlush];
[super renewGState];
}
- (void)drawRect: (NSRect)dirtyRect {
[self reshape];
}