diff options
Diffstat (limited to 'test/test_update.c')
-rw-r--r-- | test/test_update.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_update.c b/test/test_update.c index c5997ba..5e186fb 100644 --- a/test/test_update.c +++ b/test/test_update.c @@ -8,10 +8,10 @@ #undef NDEBUG -#include "test_utils.h" +#include <puglutil/test_utils.h> -#include "pugl/pugl.h" -#include "pugl/stub.h" +#include <pugl/pugl.h> +#include <pugl/stub.h> #include <assert.h> #include <stdbool.h> @@ -90,11 +90,11 @@ main(int argc, char** argv) puglSetHandle(test.view, &test); puglSetEventFunc(test.view, onEvent); puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 256, 256); - puglSetPosition(test.view, 128, 640); + puglSetPositionHint(test.view, PUGL_DEFAULT_POSITION, 128, 640); // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view, PUGL_SHOW_RAISE)); + assert(puglShow(test.view, PUGL_SHOW_RAISE) <= PUGL_FAILURE); // Tick until an expose happens while (test.state < EXPOSED1) { |