aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11_cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_cairo.c')
-rw-r--r--src/x11_cairo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11_cairo.c b/src/x11_cairo.c
index eabf46f..e9d0cea 100644
--- a/src/x11_cairo.c
+++ b/src/x11_cairo.c
@@ -99,8 +99,8 @@ puglX11CairoEnter(PuglView* view, const PuglExposeEvent* expose)
if (expose) {
const PuglViewSize viewSize = puglX11CairoGetViewSize(view);
- const PuglSpan right = expose->x + expose->width;
- const PuglSpan bottom = expose->y + expose->height;
+ const PuglSpan right = (PuglSpan)(expose->x + expose->width);
+ const PuglSpan bottom = (PuglSpan)(expose->y + expose->height);
const PuglSpan surfaceWidth = MAX(right, viewSize.width);
const PuglSpan surfaceHeight = MAX(bottom, viewSize.height);
if (!(st = puglX11CairoOpen(view, surfaceWidth, surfaceHeight))) {