mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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
d70f6a9b5e
commit
8f5faa3872
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue