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
3953b8e419
commit
061d55f535
@ -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…
x
Reference in New Issue
Block a user