Merge branch 'wip/chergert/use-fabs-in-macos' into 'master'

macos: fix scale on macOS 12 beta

See merge request GNOME/gtk!4065
This commit is contained in:
Matthias Clasen 2021-10-27 19:37:01 +00:00
commit d7d4cef66d

View File

@ -809,7 +809,7 @@ _gdk_macos_surface_acquire_context (GdkMacosSurface *self,
scale = CGSizeMake (1.0, 1.0);
scale = CGContextConvertSizeToDeviceSpace (cg_context, scale);
CGContextScaleCTM (cg_context, 1.0 / scale.width, 1.0 / scale.height);
CGContextScaleCTM (cg_context, 1.0 / fabs (scale.width), 1.0 / fabs (scale.height));
}
return cg_context;