From f5584b178d784b52bf015aa59817acd2bd7f7d26 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 6 Jun 2023 04:13:45 +0200 Subject: [PATCH] testsuite: Add a test for repeat node offscreen scaling Ensure that the offscreens for repeat nodes pick the right xscale and yscale so that they render pixel-aligned. --- testsuite/gsk/compare/repeat-scaling.node | 13 +++++++++++++ testsuite/gsk/compare/repeat-scaling.png | Bin 0 -> 97 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 14 insertions(+) create mode 100644 testsuite/gsk/compare/repeat-scaling.node create mode 100644 testsuite/gsk/compare/repeat-scaling.png diff --git a/testsuite/gsk/compare/repeat-scaling.node b/testsuite/gsk/compare/repeat-scaling.node new file mode 100644 index 0000000000..d34ded25b6 --- /dev/null +++ b/testsuite/gsk/compare/repeat-scaling.node @@ -0,0 +1,13 @@ +transform { + transform: matrix(0, 4, + -8, 0, + 0, 0); + child: repeat { + bounds: 0 0 5 2.5; + child-bounds: 0 0 1 0.5; + child: color { + bounds: 0.25 0.125 0.5 0.25; + color: rgb(0,0,255); + } + } +} diff --git a/testsuite/gsk/compare/repeat-scaling.png b/testsuite/gsk/compare/repeat-scaling.png new file mode 100644 index 0000000000000000000000000000000000000000..c8305a73512df8747c217513135f1c0d30d37247 GIT binary patch literal 97 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE;=hNp{Th(&L5!UEnO|K*!BpBrC1 u(b_EE)28?|!GuSXeQ~0PrG#f92gBit