mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +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);
|
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 {
|
- (void)drawRect: (NSRect)dirtyRect {
|
||||||
[self reshape];
|
[self reshape];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue