From 1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 May 2022 14:23:41 -0400 Subject: 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. --- examples/pugl_window_demo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/pugl_window_demo.c') diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 912ccb6..7cb3722 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -194,9 +194,9 @@ main(int argc, char** argv) puglSetWindowTitle(view, "Pugl Window Demo"); puglSetFrame(view, frame); - puglSetDefaultSize(view, 512, 512); - puglSetMinSize(view, 128, 128); - puglSetMaxSize(view, 2048, 2048); + puglSetSizeHint(view, PUGL_DEFAULT_SIZE, 512, 512); + puglSetSizeHint(view, PUGL_MIN_SIZE, 128, 128); + puglSetSizeHint(view, PUGL_MAX_SIZE, 2048, 2048); puglSetBackend(view, puglGlBackend()); puglSetViewHint(view, PUGL_USE_DEBUG_CONTEXT, opts.errorChecking); -- cgit v1.2.1