diff options
author | David Robillard <d@drobilla.net> | 2023-01-07 19:27:18 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-07 20:27:35 -0500 |
commit | 14b35ef217f5ee387c4f33b1b24bebb015e18f23 (patch) | |
tree | 2e9ea2b44dfc9e3108f1a1c489f6842273404272 /test/test_size.c | |
parent | 4ad8621ac1d94c8e9cf88f83c46a3a70cd91212b (diff) | |
download | pugl-14b35ef217f5ee387c4f33b1b24bebb015e18f23.tar.gz pugl-14b35ef217f5ee387c4f33b1b24bebb015e18f23.tar.bz2 pugl-14b35ef217f5ee387c4f33b1b24bebb015e18f23.zip |
Replace map/unmap events with more expressive configure events
Diffstat (limited to 'test/test_size.c')
-rw-r--r-- | test/test_size.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_size.c b/test/test_size.c index ef8b738..f19deb9 100644 --- a/test/test_size.c +++ b/test/test_size.c @@ -18,7 +18,6 @@ typedef enum { START, REALIZED, CONFIGURED, - MAPPED, UNREALIZED, } State; @@ -53,9 +52,6 @@ onEvent(PuglView* view, const PuglEvent* event) test->configuredFrame.width = event->configure.width; test->configuredFrame.height = event->configure.height; break; - case PUGL_MAP: - test->state = MAPPED; - break; case PUGL_UNREALIZE: test->state = UNREALIZED; break; @@ -96,7 +92,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); assert(!puglShow(test.view)); - while (test.state < MAPPED) { + while (test.state < CONFIGURED) { assert(!puglUpdate(test.world, -1.0)); } |