summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-11-16 11:00:14 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-11-19 17:26:11 +0100
commitdb27bac0ccc81c39b4558259096be905d88c129a (patch)
tree821f23d0765ee5b8e3f4971f9f6b03ec5742bb82
parente3f0b62eb0ae896385efc17bd4ff688d3140ae75 (diff)
gl/cocoa: Only use convertRectToBacking on OSX >= 10.7
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
-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",