aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_cairo_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_cairo_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_cairo_demo.c')
-rw-r--r--examples/pugl_cairo_demo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c
index 51039a2..2e0b9c7 100644
--- a/examples/pugl_cairo_demo.c
+++ b/examples/pugl_cairo_demo.c
@@ -236,11 +236,10 @@ main(int argc, char** argv)
app.world = puglNewWorld(PUGL_PROGRAM, 0);
puglSetClassName(app.world, "PuglCairoTest");
- PuglRect frame = { 0, 0, 512, 512 };
- PuglView* view = puglNewView(app.world);
+ PuglView* view = puglNewView(app.world);
puglSetWindowTitle(view, "Pugl Cairo Demo");
- puglSetFrame(view, frame);
+ puglSetDefaultSize(view, 512, 512);
puglSetMinSize(view, 256, 256);
puglSetViewHint(view, PUGL_RESIZABLE, app.opts.resizable);
puglSetHandle(view, &app);