From e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 19:28:22 +0200 Subject: Replace size and aspect ratio init functions with dynamic ones --- test/pugl_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/pugl_test.c') diff --git a/test/pugl_test.c b/test/pugl_test.c index 7ee04b8..285c5d9 100644 --- a/test/pugl_test.c +++ b/test/pugl_test.c @@ -317,8 +317,8 @@ main(int argc, char** argv) const PuglRect parentFrame = { 0, 0, 512, 512 }; puglInitWindowClass(app.parent, "PuglTest"); puglSetFrame(app.parent, parentFrame); - puglInitWindowMinSize(app.parent, 256, 256); - puglInitWindowAspectRatio(app.parent, 1, 1, 16, 9); + puglSetMinSize(app.parent, borderWidth * 3, borderWidth * 3); + puglSetAspectRatio(app.parent, 1, 1, 16, 9); puglInitBackend(app.parent, puglGlBackend()); puglInitWindowHint(app.parent, PUGL_RESIZABLE, resizable); -- cgit v1.2.1