diff options
Diffstat (limited to 'test/pugl_cairo_test.c')
-rw-r--r-- | test/pugl_cairo_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c index a16c821..3cdf904 100644 --- a/test/pugl_cairo_test.c +++ b/test/pugl_cairo_test.c @@ -202,7 +202,8 @@ main(int argc, char** argv) } } - PuglView* view = puglInit(NULL, NULL); + PuglWorld* world = puglNewWorld(); + PuglView* view = puglNewView(world); puglInitWindowClass(view, "PuglCairoTest"); puglInitWindowSize(view, 512, 512); puglInitWindowMinSize(view, 256, 256); @@ -233,6 +234,7 @@ main(int argc, char** argv) } } - puglDestroy(view); + puglFreeView(view); + puglFreeWorld(world); return 0; } |