aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-05-16 21:18:02 +0200
committerDavid Robillard <d@drobilla.net>2020-05-16 21:18:02 +0200
commitfe96ed3c451548278197e2da74d3d53b1d6a8dd9 (patch)
tree6c4e3e751ddd13cd4898fac0fae4f4aed7079f36 /examples/pugl_embed_demo.c
parent3200cda25e06887e809fc5b47780aaf950253172 (diff)
downloadpugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.tar.gz
pugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.tar.bz2
pugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.zip
Add default and maximum size
Diffstat (limited to 'examples/pugl_embed_demo.c')
-rw-r--r--examples/pugl_embed_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index de7b240..bf7f19c 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -293,7 +293,7 @@ main(int argc, char** argv)
puglSetClassName(app.world, "Pugl Test");
const PuglRect parentFrame = { 0, 0, 512, 512 };
- puglSetFrame(app.parent, parentFrame);
+ puglSetDefaultSize(app.parent, 512, 512);
puglSetMinSize(app.parent, borderWidth * 3, borderWidth * 3);
puglSetAspectRatio(app.parent, 1, 1, 16, 9);
puglSetBackend(app.parent, puglGlBackend());