gl/cocoa: NSView::drawRect() should call into reshape too
authorSebastian Dröge <sebastian@centricular.com>
Mon, 29 Sep 2014 06:24:49 +0000 (09:24 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:47 +0000 (19:31 +0000)
We a) need to render again because part of the window was
obscured and b) might need to reshape because of clipping
changes.

gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m

index 4f66871..df48144 100644 (file)
@@ -530,6 +530,10 @@ resize_cb (gpointer data)
   gst_object_unref (context);
 }
 
+- (void)drawRect: (NSRect)dirtyRect {
+  [self reshape];
+}
+
 - (void)reshape {
   GstGLWindow *window;