From 4c4b388fab18b12c0cc915238f844eb78b9ff21d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 26 Jul 2019 22:45:16 +0200 Subject: Fix building pugl_cairo_test as C++ --- test/pugl_cairo_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pugl_cairo_test.c') diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c index ef7365f..ad68f3f 100644 --- a/test/pugl_cairo_test.c +++ b/test/pugl_cairo_test.c @@ -101,7 +101,7 @@ buttonTouches(const Button* but, double x, double y) static void onDisplay(PuglView* view) { - cairo_t* cr = puglGetContext(view); + cairo_t* cr = (cairo_t*)puglGetContext(view); // Draw background int width, height; -- cgit v1.2.1