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:
parent
9492db96d1
commit
236ffa69be
@ -533,8 +533,10 @@ resize_cb (gpointer data)
|
|||||||
NSRect visibleRect = [self visibleRect];
|
NSRect visibleRect = [self visibleRect];
|
||||||
struct resize *resize_data = g_new (struct resize, 1);
|
struct resize *resize_data = g_new (struct resize, 1);
|
||||||
|
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||||
bounds = [self convertRectToBacking:bounds];
|
bounds = [self convertRectToBacking:bounds];
|
||||||
visibleRect = [self convertRectToBacking:visibleRect];
|
visibleRect = [self convertRectToBacking:visibleRect];
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (window, "Window resized: bounds %lf %lf %lf %lf "
|
GST_DEBUG_OBJECT (window, "Window resized: bounds %lf %lf %lf %lf "
|
||||||
"visibleRect %lf %lf %lf %lf",
|
"visibleRect %lf %lf %lf %lf",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user