diff options
Diffstat (limited to 'test/test_realize.c')
-rw-r--r-- | test/test_realize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_realize.c b/test/test_realize.c index fcf106e..bf55e50 100644 --- a/test/test_realize.c +++ b/test/test_realize.c @@ -66,12 +66,14 @@ main(int argc, char** argv) puglSetClassName(test.world, "PuglTest"); puglSetWindowTitle(test.view, "Pugl Realize Test"); puglSetHandle(test.view, &test); - puglSetEventFunc(test.view, onEvent); assert(puglRealize(test.view) == PUGL_BAD_BACKEND); puglSetBackend(test.view, puglStubBackend()); assert(puglRealize(test.view) == PUGL_BAD_CONFIGURATION); + puglSetEventFunc(test.view, onEvent); + assert(puglRealize(test.view) == PUGL_BAD_CONFIGURATION); + puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 256, 256); puglSetPosition(test.view, 640, 128); |