aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-26 22:45:16 +0200
committerDavid Robillard <d@drobilla.net>2019-07-28 15:01:26 +0200
commit4c4b388fab18b12c0cc915238f844eb78b9ff21d (patch)
treeee81758818bb89057cb94feccb927f7593705869
parenteada1042452e8708ca6c65f7c23ac3c59e4c53f0 (diff)
Fix building pugl_cairo_test as C++
-rw-r--r--test/pugl_cairo_test.c2
1 files changed, 1 insertions, 1 deletions
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;