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
This commit is contained in:
Sebastian Dröge 2014-11-16 11:00:14 +01:00 committed by Tim-Philipp Müller
parent d70f6a9b5e
commit 8f5faa3872

View 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",