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 4710ca2..c078e6b 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> @@ -63,7 +63,7 @@ onEvent(PuglView* view, const PuglEvent* event) case PUGL_UPDATE: if (test->state == EXPOSED1) { test->state = UPDATED; - puglPostRedisplay(view); + puglObscureView(view); } break; @@ -90,7 +90,7 @@ 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)); |