aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_cairo.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-27 18:43:20 -0400
committerDavid Robillard <d@drobilla.net>2021-05-27 19:04:08 -0400
commit5e1ca2099a912d88c57320f61a6f316d2e7c67b7 (patch)
tree807ffb9e40f13ffca6b1289095c263f545d2d640 /src/mac_cairo.m
parent873fe784f2a003d8dfa8ee64bc05aba3b0754c86 (diff)
downloadpugl-5e1ca2099a912d88c57320f61a6f316d2e7c67b7.tar.gz
pugl-5e1ca2099a912d88c57320f61a6f316d2e7c67b7.tar.bz2
pugl-5e1ca2099a912d88c57320f61a6f316d2e7c67b7.zip
Make code build cleanly as C++
Diffstat (limited to 'src/mac_cairo.m')
-rw-r--r--src/mac_cairo.m2
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);