summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
index 7d0a39493..16cb95094 100644
--- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
+++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
@@ -549,8 +549,10 @@ resize_cb (gpointer data)
NSRect visibleRect = [self visibleRect];
struct resize *resize_data = g_new (struct resize, 1);
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
bounds = [self convertRectToBacking:bounds];
visibleRect = [self convertRectToBacking:visibleRect];
+#endif
GST_DEBUG_OBJECT (window, "Window resized: bounds %lf %lf %lf %lf "
"visibleRect %lf %lf %lf %lf",