aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_cairo.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac_cairo.m')
-rw-r--r--src/mac_cairo.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mac_cairo.m b/src/mac_cairo.m
index 33fc89a..e269955 100644
--- a/src/mac_cairo.m
+++ b/src/mac_cairo.m
@@ -89,7 +89,10 @@ puglMacCairoEnter(PuglView* view, const PuglExposeEvent* expose)
const double scale = 1.0 / [[NSScreen mainScreen] backingScaleFactor];
CGContextRef context =
(CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
- const CGSize sizePx = {view->frame.width, view->frame.height};
+
+ const CGSize sizePx = {(CGFloat)view->frame.width,
+ (CGFloat)view->frame.height};
+
const CGSize sizePt = CGContextConvertSizeToUserSpace(context, sizePx);
// Convert coordinates to standard Cairo space