diff options
Diffstat (limited to 'src/mac_cairo.m')
-rw-r--r-- | src/mac_cairo.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mac_cairo.m b/src/mac_cairo.m index 59e4bc1..a2888ab 100644 --- a/src/mac_cairo.m +++ b/src/mac_cairo.m @@ -101,7 +101,7 @@ puglMacCairoEnter(PuglView* view, const PuglExposeEvent* expose) assert(!drawView->cr); const double scale = 1.0 / [[NSScreen mainScreen] backingScaleFactor]; - CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort]; + CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; const CGSize sizePx = {view->frame.width, view->frame.height}; const CGSize sizePt = CGContextConvertSizeToUserSpace(context, sizePx); |