1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-23 10:39:03 +00:00

chore(core/tests): invert UI diff colors

[no changelog]
This commit is contained in:
obrusvit 2025-03-19 11:39:49 +01:00 committed by Vít Obrusník
parent 079873ced7
commit 98b35a5b34

View File

@ -213,7 +213,7 @@ function createRowDiff(row) {
// Process differences
const difData = difCtx.createImageData(width, height);
options = {threshold: 0.0, includeAA: true, diffColorAlt: [0, 255, 0]};
options = {threshold: 0.0, includeAA: true, diffColor: [0, 255, 0], diffColorAlt: [255, 0, 0]};
pixelmatch(recData.data, curData.data, difData.data, width, height, options);
difCtx.putImageData(difData, 0, 0);