diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 19:28:22 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:39 +0200 |
commit | e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c (patch) | |
tree | 9b8cfba48e3078a15b5c68f70a1e8a442b84025e /test | |
parent | f98e804c5f844f2dd78e94f7a1c9db15b7332fbb (diff) |
Replace size and aspect ratio init functions with dynamic ones
Diffstat (limited to 'test')
-rw-r--r-- | test/pugl_cairo_test.c | 2 | ||||
-rw-r--r-- | test/pugl_test.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c index f339abd..c396dad 100644 --- a/test/pugl_cairo_test.c +++ b/test/pugl_cairo_test.c @@ -211,7 +211,7 @@ main(int argc, char** argv) PuglView* view = puglNewView(world); puglInitWindowClass(view, "PuglCairoTest"); puglSetFrame(view, frame); - puglInitWindowMinSize(view, 256, 256); + puglSetMinSize(view, 256, 256); puglInitWindowHint(view, PUGL_RESIZABLE, resizable); puglInitBackend(view, puglCairoBackend()); 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); |