diff options
author | David Robillard <d@drobilla.net> | 2021-05-27 18:43:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-27 19:04:08 -0400 |
commit | 5e1ca2099a912d88c57320f61a6f316d2e7c67b7 (patch) | |
tree | 807ffb9e40f13ffca6b1289095c263f545d2d640 /src/mac_cairo.m | |
parent | 873fe784f2a003d8dfa8ee64bc05aba3b0754c86 (diff) | |
download | pugl-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.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); |