diff options
author | David Robillard <d@drobilla.net> | 2020-04-01 19:35:58 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-01 19:41:37 +0200 |
commit | fcddc7933dbff47754b8e4acea7406b77df1bf21 (patch) | |
tree | 8d82bc731b5e86b10e28acc85654d9be86ff321a /examples/pugl_cairo_demo.c | |
parent | 3f71daba7d92c50f7fd31e8775fc58d3ebf3900d (diff) | |
download | pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.gz pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.bz2 pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.zip |
Replace puglShowWindow() with puglRealize()
Diffstat (limited to 'examples/pugl_cairo_demo.c')
-rw-r--r-- | examples/pugl_cairo_demo.c | 5 |
1 files changed, 3 insertions, 2 deletions
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)); } |