From fe96ed3c451548278197e2da74d3d53b1d6a8dd9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 May 2020 21:18:02 +0200 Subject: Add default and maximum size --- test/test_redisplay.c | 1 + test/test_show_hide.c | 1 + test/test_timer.c | 1 + test/test_update.c | 1 + 4 files changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_redisplay.c b/test/test_redisplay.c index 13f0c81..0e14cf6 100644 --- a/test/test_redisplay.c +++ b/test/test_redisplay.c @@ -111,6 +111,7 @@ main(int argc, char** argv) puglSetBackend(app.view, puglStubBackend()); puglSetHandle(app.view, &app); puglSetEventFunc(app.view, onEvent); + puglSetDefaultSize(app.view, 512, 512); // Create and show window assert(!puglRealize(app.view)); diff --git a/test/test_show_hide.c b/test/test_show_hide.c index 43af7f4..7b6d4f4 100644 --- a/test/test_show_hide.c +++ b/test/test_show_hide.c @@ -115,6 +115,7 @@ main(int argc, char** argv) puglSetBackend(test.view, puglStubBackend()); puglSetHandle(test.view, &test); puglSetEventFunc(test.view, onEvent); + puglSetDefaultSize(test.view, 512, 512); // Create initially invisible window assert(!puglRealize(test.view)); diff --git a/test/test_timer.c b/test/test_timer.c index f26928d..2a0b67f 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -109,6 +109,7 @@ main(int argc, char** argv) puglSetBackend(app.view, puglStubBackend()); puglSetHandle(app.view, &app); puglSetEventFunc(app.view, onEvent); + puglSetDefaultSize(app.view, 512, 512); // Create and show window assert(!puglRealize(app.view)); diff --git a/test/test_update.c b/test/test_update.c index 6dccf00..65d74d6 100644 --- a/test/test_update.c +++ b/test/test_update.c @@ -101,6 +101,7 @@ main(int argc, char** argv) puglSetBackend(app.view, puglStubBackend()); puglSetHandle(app.view, &app); puglSetEventFunc(app.view, onEvent); + puglSetDefaultSize(app.view, 512, 512); // Create and show window assert(!puglRealize(app.view)); -- cgit v1.2.1