diff options
-rw-r--r-- | src/mac_cairo.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mac_cairo.m b/src/mac_cairo.m index 8e28985..e4d2f5f 100644 --- a/src/mac_cairo.m +++ b/src/mac_cairo.m @@ -93,10 +93,8 @@ puglMacCairoEnter(PuglView* view, const PuglExposeEvent* expose) const CGSize sizePx = {(CGFloat)view->lastConfigure.width, (CGFloat)view->lastConfigure.height}; - const CGSize sizePt = CGContextConvertSizeToUserSpace(context, sizePx); - // Convert coordinates to standard Cairo space - CGContextTranslateCTM(context, 0.0, -sizePt.height); + CGContextTranslateCTM(context, 0.0, sizePx.height * scale); CGContextScaleCTM(context, scale, -scale); drawView->surface = cairo_quartz_surface_create_for_cg_context( |