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_print_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/pugl_print_events.c') diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c index 1bbe33a..3c07873 100644 --- a/examples/pugl_print_events.c +++ b/examples/pugl_print_events.c @@ -43,7 +43,7 @@ main(void) puglSetClassName(app.world, "PuglPrintEvents"); puglSetWindowTitle(app.view, "Pugl Event Printer"); - puglSetDefaultSize(app.view, 512, 512); + puglSetSizeHint(app.view, PUGL_DEFAULT_SIZE, 512, 512); puglSetBackend(app.view, puglStubBackend()); puglSetHandle(app.view, &app); puglSetEventFunc(app.view, onEvent); -- cgit v1.2.1