From fcddc7933dbff47754b8e4acea7406b77df1bf21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Apr 2020 19:35:58 +0200 Subject: Replace puglShowWindow() with puglRealize() --- test/test_redisplay.c | 2 +- test/test_show_hide.c | 2 +- test/test_timer.c | 2 +- test/test_update.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test_redisplay.c b/test/test_redisplay.c index 6ec5bb8..75006cb 100644 --- a/test/test_redisplay.c +++ b/test/test_redisplay.c @@ -107,7 +107,7 @@ main(int argc, char** argv) puglSetEventFunc(app.view, onEvent); // Create and show window - assert(!puglCreateWindow(app.view, "Pugl Test")); + assert(!puglRealize(app.view)); assert(!puglShowWindow(app.view)); while (app.state != EXPOSED) { assert(!puglUpdate(app.world, timeout)); diff --git a/test/test_show_hide.c b/test/test_show_hide.c index ed5ede7..cc2c972 100644 --- a/test/test_show_hide.c +++ b/test/test_show_hide.c @@ -117,7 +117,7 @@ main(int argc, char** argv) puglSetEventFunc(test.view, onEvent); // Create initially invisible window - assert(!puglCreateWindow(test.view, "Pugl Test")); + assert(!puglRealize(test.view)); assert(!puglGetVisible(test.view)); while (test.state < CREATED) { tick(test.world); diff --git a/test/test_timer.c b/test/test_timer.c index 11666ec..58d0652 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -111,7 +111,7 @@ main(int argc, char** argv) puglSetEventFunc(app.view, onEvent); // Create and show window - assert(!puglCreateWindow(app.view, "Pugl Test")); + assert(!puglRealize(app.view)); assert(!puglShowWindow(app.view)); while (app.state != EXPOSED) { assert(!puglUpdate(app.world, timeout)); diff --git a/test/test_update.c b/test/test_update.c index ada3da8..081fb9b 100644 --- a/test/test_update.c +++ b/test/test_update.c @@ -103,7 +103,7 @@ main(int argc, char** argv) puglSetEventFunc(app.view, onEvent); // Create and show window - assert(!puglCreateWindow(app.view, "Pugl Test")); + assert(!puglRealize(app.view)); assert(!puglShowWindow(app.view)); // Tick until an expose happens -- cgit v1.2.1