aboutsummaryrefslogtreecommitdiffstats
path: root/pugl_cairo_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl_cairo_test.c')
-rw-r--r--pugl_cairo_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl_cairo_test.c b/pugl_cairo_test.c
index 3837d48..4f4aaa3 100644
--- a/pugl_cairo_test.c
+++ b/pugl_cairo_test.c
@@ -190,7 +190,10 @@ main(int argc, char** argv)
puglIgnoreKeyRepeat(view, ignoreKeyRepeat);
puglSetEventFunc(view, onEvent);
- puglCreateWindow(view, "Pugl Test");
+ if (puglCreateWindow(view, "Pugl Test")) {
+ return 1;
+ }
+
puglShowWindow(view);
while (!quit) {