diff options
author | David Robillard <d@drobilla.net> | 2022-05-20 14:23:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-21 16:49:47 -0400 |
commit | 1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76 (patch) | |
tree | d7760c11195b003dc27a6f86f0c47df51c0a32da /examples/pugl_cursor_demo.c | |
parent | 0fc1422e858bf9849b84aee2abeca3b553214b73 (diff) | |
download | pugl-1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76.tar.gz pugl-1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76.tar.bz2 pugl-1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76.zip |
Add a uniform API for setting size hints
This collapses many functions into one, which makes the API more easily
extensible and reduces code size.
Diffstat (limited to 'examples/pugl_cursor_demo.c')
-rw-r--r-- | examples/pugl_cursor_demo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pugl_cursor_demo.c b/examples/pugl_cursor_demo.c index 8462193..c9839da 100644 --- a/examples/pugl_cursor_demo.c +++ b/examples/pugl_cursor_demo.c @@ -124,9 +124,9 @@ main(int argc, char** argv) PuglView* view = puglNewView(app.world); puglSetWindowTitle(view, "Pugl Cursor Demo"); - puglSetDefaultSize(view, 512, 256); - puglSetMinSize(view, 128, 64); - puglSetMaxSize(view, 512, 256); + puglSetSizeHint(view, PUGL_DEFAULT_SIZE, 512, 256); + puglSetSizeHint(view, PUGL_MIN_SIZE, 128, 64); + puglSetSizeHint(view, PUGL_MAX_SIZE, 512, 256); puglSetBackend(view, puglGlBackend()); puglSetViewHint(view, PUGL_USE_DEBUG_CONTEXT, app.opts.errorChecking); |