From: Benjamin Otte Date: Sun, 21 May 2023 02:48:46 +0000 (+0200) Subject: testsuite: Adapt color-matrix testcase X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~183^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8c5e046574b23b23e964d639b6c3fc99e8eefd6d;p=gtk4.git testsuite: Adapt color-matrix testcase Make it use an alpha value that is well defined, ie 0.4 instead of 0.5. 0.4 * 255 = 102 0.5 * 255 = 127.5 This avoids rounding issues where some math may cause the resulting alpha value to be 127, and some other math ends up with 128. --- diff --git a/testsuite/gsk/compare/color-matrix-identity.node b/testsuite/gsk/compare/color-matrix-identity.node index a81a474ad0..9498d08ba2 100644 --- a/testsuite/gsk/compare/color-matrix-identity.node +++ b/testsuite/gsk/compare/color-matrix-identity.node @@ -1,7 +1,7 @@ color-matrix { child: color { bounds: 0 0 50 50; - color: rgba(255, 0, 0, 0.5); + color: rgba(255, 0, 0, 0.4); } matrix: none; offset: 0 0 0 0; diff --git a/testsuite/gsk/compare/color-matrix-identity.png b/testsuite/gsk/compare/color-matrix-identity.png index f88dc6ac79..7fcb5001c7 100644 Binary files a/testsuite/gsk/compare/color-matrix-identity.png and b/testsuite/gsk/compare/color-matrix-identity.png differ