gl/cocoa: Only use convertRectToBacking on OSX >= 10.7
authorSebastian Dröge <sebastian@centricular.com>
Sun, 16 Nov 2014 10:00:14 +0000 (11:00 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:50 +0000 (19:31 +0000)
It does not exist before and older versions also don't have
support for HiDPI displays anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=740201

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

index c909d58..f9aa330 100644 (file)
@@ -533,8 +533,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",