mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Remove call to deprecated userSpaceScaleFactor
userSpaceScaleFactor is a missing symbol on some recent versions of macOS.
This commit is contained in:
parent
826103f08c
commit
ecd22e9aa8
1 changed files with 2 additions and 3 deletions
|
|
@ -88,8 +88,7 @@ _gdk_screen_quartz_init (GdkScreenQuartz *screen_quartz)
|
||||||
gdk_screen_get_system_colormap (screen));
|
gdk_screen_get_system_colormap (screen));
|
||||||
|
|
||||||
nsscreen = [[NSScreen screens] objectAtIndex:0];
|
nsscreen = [[NSScreen screens] objectAtIndex:0];
|
||||||
gdk_screen_set_resolution (screen,
|
gdk_screen_set_resolution (screen, 72.0 /* * [nsscreen userSpaceScaleFactor] */);
|
||||||
72.0 * [nsscreen userSpaceScaleFactor]);
|
|
||||||
|
|
||||||
gdk_screen_quartz_calculate_layout (screen_quartz);
|
gdk_screen_quartz_calculate_layout (screen_quartz);
|
||||||
|
|
||||||
|
|
@ -362,7 +361,7 @@ get_mm_from_pixels (NSScreen *screen, int pixels)
|
||||||
* and 25.4 is the number of millimeters per inch.
|
* and 25.4 is the number of millimeters per inch.
|
||||||
*/
|
*/
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_3
|
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_3
|
||||||
float dpi = [screen userSpaceScaleFactor] * 72.0;
|
float dpi = /* [screen userSpaceScaleFactor] * */ 72.0;
|
||||||
#else
|
#else
|
||||||
float dpi = 96.0 / 72.0;
|
float dpi = 96.0 / 72.0;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue