aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_size.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_size.c')
-rw-r--r--test/test_size.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_size.c b/test/test_size.c
index 1c2f0c6..ef8b738 100644
--- a/test/test_size.c
+++ b/test/test_size.c
@@ -16,10 +16,10 @@
typedef enum {
START,
- CREATED,
+ REALIZED,
CONFIGURED,
MAPPED,
- DESTROYED,
+ UNREALIZED,
} State;
typedef struct {
@@ -40,12 +40,12 @@ onEvent(PuglView* view, const PuglEvent* event)
}
switch (event->type) {
- case PUGL_CREATE:
+ case PUGL_REALIZE:
assert(test->state == START);
- test->state = CREATED;
+ test->state = REALIZED;
break;
case PUGL_CONFIGURE:
- if (test->state == CREATED) {
+ if (test->state == REALIZED) {
test->state = CONFIGURED;
}
test->configuredFrame.x = event->configure.x;
@@ -56,8 +56,8 @@ onEvent(PuglView* view, const PuglEvent* event)
case PUGL_MAP:
test->state = MAPPED;
break;
- case PUGL_DESTROY:
- test->state = DESTROYED;
+ case PUGL_UNREALIZE:
+ test->state = UNREALIZED;
break;
default:
break;