Skip to content

macos: fix scale on macOS 12 beta

Christian Hergert requested to merge wip/chergert/use-fabs-in-macos into master

This is a port of the fix in the quartz backend to the new macOS backend.

From the original commit:

In macOS-12.sdk CGContextConverSizeToDeviceSpace returns a negative height and passing that to CGContextScaleCTM in turn causes the cairo surface to draw outside the window where it can't be seen. Passing the absolute values of the scale factors fixes the display on macOS 12 without affecting earlier macOS versions.

Merge request reports