testsuite: Adapt color-matrix testcase
authorBenjamin Otte <otte@redhat.com>
Sun, 21 May 2023 02:48:46 +0000 (04:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 5 Jun 2023 03:33:07 +0000 (05:33 +0200)
commit8c5e046574b23b23e964d639b6c3fc99e8eefd6d
treed77b3ae2fb2db25b848f75952c05b66102d6b979
parent8860a2a688ba75c0078f4334fce0912000417072
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.
testsuite/gsk/compare/color-matrix-identity.node
testsuite/gsk/compare/color-matrix-identity.png