diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-09-29 09:24:49 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-14 10:01:02 +0200 |
commit | da30ea5e678f0d80a5964b0c64744256c38f10cb (patch) | |
tree | fba655c80426e6ece7ebe5de96bb81a9eafd9de7 | |
parent | ad4f17075bf4ff32933eb83a8ab33e275bcff34e (diff) | |
download | gstreamer-plugins-bad-da30ea5e678f0d80a5964b0c64744256c38f10cb.tar.gz |
gl/cocoa: NSView::drawRect() should call into reshape too
We a) need to render again because part of the window was
obscured and b) might need to reshape because of clipping
changes.
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 4f6687179..df481441a 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -530,6 +530,10 @@ resize_cb (gpointer data) gst_object_unref (context); } +- (void)drawRect: (NSRect)dirtyRect { + [self reshape]; +} + - (void)reshape { GstGLWindow *window; |