From 816607027012de0205e144f3edd3fdcfd43db563 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 18:49:09 +0200 Subject: Add functions to get and set view size and position --- test/pugl_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/pugl_test.c') diff --git a/test/pugl_test.c b/test/pugl_test.c index d6207fe..ea849a6 100644 --- a/test/pugl_test.c +++ b/test/pugl_test.c @@ -181,9 +181,11 @@ main(int argc, char** argv) app.world = puglNewWorld(); + const PuglRect frame = { 0, 0, 512, 512 }; + PuglView* view = puglNewView(app.world); puglInitWindowClass(view, "PuglTest"); - puglInitWindowSize(view, 512, 512); + puglSetFrame(view, frame); puglInitWindowMinSize(view, 256, 256); puglInitWindowAspectRatio(view, 1, 1, 16, 9); puglInitBackend(view, puglGlBackend()); -- cgit v1.2.1