aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11_cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11_cairo.c')
-rw-r--r--pugl/pugl_x11_cairo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_x11_cairo.c b/pugl/pugl_x11_cairo.c
index bd427f8..8febe46 100644
--- a/pugl/pugl_x11_cairo.c
+++ b/pugl/pugl_x11_cairo.c
@@ -61,7 +61,7 @@ puglX11CairoCreate(PuglView* view)
return 1;
}
- int st = cairo_surface_status(surface->surface);
+ cairo_status_t st = cairo_surface_status(surface->surface);
if (st) {
fprintf(stderr, "error: failed to create cairo surface (%s)\n",
cairo_status_to_string(st));
@@ -72,7 +72,7 @@ puglX11CairoCreate(PuglView* view)
fprintf(stderr, "error: cairo context is invalid (%s)\n",
cairo_status_to_string(st));
}
- return st;
+ return (int)st;
}
static int