diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mac_cairo.m | 4 | ||||
-rw-r--r-- | src/x11.c | 2 |
2 files changed, 2 insertions, 4 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( @@ -2194,7 +2194,7 @@ puglSetCursor(PuglView* const view, const PuglCursor cursor) #else (void)view; (void)cursor; - return PUGL_FAILURE; + return PUGL_UNSUPPORTED; #endif } |