aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_embed_demo.c')
-rw-r--r--examples/pugl_embed_demo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index 085cfa7..66605b7 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -277,10 +277,11 @@ main(int argc, char** argv)
puglSetClassName(app.world, "PuglEmbedDemo");
const PuglRect parentFrame = {0, 0, 512, 512};
- puglSetDefaultSize(app.parent, 512, 512);
- puglSetMinSize(app.parent, borderWidth * 3, borderWidth * 3);
- puglSetMaxSize(app.parent, 1024, 1024);
- puglSetAspectRatio(app.parent, 1, 1, 16, 9);
+ puglSetSizeHint(app.parent, PUGL_DEFAULT_SIZE, 512, 512);
+ puglSetSizeHint(app.parent, PUGL_MIN_SIZE, 192, 192);
+ puglSetSizeHint(app.parent, PUGL_MAX_SIZE, 1024, 1024);
+ puglSetSizeHint(app.parent, PUGL_MIN_ASPECT, 1, 1);
+ puglSetSizeHint(app.parent, PUGL_MAX_ASPECT, 16, 9);
puglSetBackend(app.parent, puglGlBackend());
puglSetViewHint(app.parent, PUGL_USE_DEBUG_CONTEXT, opts.errorChecking);