aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_size.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-11 11:10:19 -0500
committerDavid Robillard <d@drobilla.net>2023-01-11 11:10:19 -0500
commit94fec62ba519e3e846e02327a3ece0e6bcaa016b (patch)
tree14be8aa27868f2198194e39374b9ad4407960ace /test/test_size.c
parent0f68cd00eb06ca1d7a4bdbb9e94ec060e784bd50 (diff)
downloadpugl-94fec62ba519e3e846e02327a3ece0e6bcaa016b.tar.gz
pugl-94fec62ba519e3e846e02327a3ece0e6bcaa016b.tar.bz2
pugl-94fec62ba519e3e846e02327a3ece0e6bcaa016b.zip
Spread tests around the screen
This makes it unlikely for tests to be completely obscured, which should hopefully make things a bit more consistent and reliable, especially when running all of the tests in parallel. It also makes things a bit less visually confusing.
Diffstat (limited to 'test/test_size.c')
-rw-r--r--test/test_size.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_size.c b/test/test_size.c
index 895b4d0..3c58619 100644
--- a/test/test_size.c
+++ b/test/test_size.c
@@ -65,9 +65,9 @@ onEvent(PuglView* view, const PuglEvent* event)
int
main(int argc, char** argv)
{
- static const PuglSpan minSize = 256;
- static const PuglSpan defaultSize = 512;
- static const PuglSpan maxSize = 1024;
+ static const PuglSpan minSize = 128;
+ static const PuglSpan defaultSize = 256;
+ static const PuglSpan maxSize = 512;
PuglTest test = {puglNewWorld(PUGL_PROGRAM, 0),
NULL,
@@ -88,6 +88,7 @@ main(int argc, char** argv)
puglSetSizeHint(test.view, PUGL_MAX_SIZE, maxSize, maxSize);
puglSetSizeHint(test.view, PUGL_MIN_ASPECT, 1, 1);
puglSetSizeHint(test.view, PUGL_MAX_ASPECT, 1, 1);
+ puglSetPosition(test.view, 384, 384);
// Create and show window
assert(!puglRealize(test.view));