mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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:
parent
28d4d57180
commit
b44798d549
1 changed files with 10 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue