mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue