aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_stub_hints.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_stub_hints.c')
-rw-r--r--test/test_stub_hints.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/test_stub_hints.c b/test/test_stub_hints.c
index b7d54e3..5694261 100644
--- a/test/test_stub_hints.c
+++ b/test/test_stub_hints.c
@@ -1,16 +1,14 @@
// Copyright 2020 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-/*
- Tests that all hints are set to real values after a view is realized.
-*/
+// Tests that all hints are set to real values after a view is realized
#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>
@@ -35,7 +33,7 @@ main(void)
puglSetBackend(view, puglStubBackend());
puglSetEventFunc(view, onEvent);
puglSetSizeHint(view, PUGL_DEFAULT_SIZE, 256, 256);
- puglSetPosition(view, 640, 384);
+ puglSetPositionHint(view, PUGL_DEFAULT_POSITION, 640, 384);
// Check invalid cases
assert(puglSetViewHint(view, (PuglViewHint)-1, 0) == PUGL_BAD_PARAMETER);