From fcddc7933dbff47754b8e4acea7406b77df1bf21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Apr 2020 19:35:58 +0200 Subject: Replace puglShowWindow() with puglRealize() --- examples/pugl_cairo_demo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/pugl_cairo_demo.c') diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c index 6b43cb0..483446f 100644 --- a/examples/pugl_cairo_demo.c +++ b/examples/pugl_cairo_demo.c @@ -237,16 +237,17 @@ main(int argc, char** argv) PuglRect frame = { 0, 0, 512, 512 }; PuglView* view = puglNewView(app.world); + + puglSetWindowTitle(view, "Pugl Cairo Demo"); puglSetFrame(view, frame); puglSetMinSize(view, 256, 256); puglSetViewHint(view, PUGL_RESIZABLE, app.opts.resizable); puglSetHandle(view, &app); puglSetBackend(view, puglCairoBackend()); - puglSetViewHint(view, PUGL_IGNORE_KEY_REPEAT, app.opts.ignoreKeyRepeat); puglSetEventFunc(view, onEvent); - PuglStatus st = puglCreateWindow(view, "Pugl Test"); + PuglStatus st = puglRealize(view); if (st) { return logError("Failed to create window (%s)\n", puglStrerror(st)); } -- cgit v1.2.1