Skip to content

Commit 5f23109

Browse files
committed
test: Fix transparent pixels in fuzzyCompareImages()
1 parent e691f76 commit 5f23109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ double fuzzyCompareImages(const QImage &a, const QImage &b)
2828

2929
for (y = 0; y < a.height(); y++) {
3030
for (x = 0; x < a.width(); x++) {
31-
if (a.pixel(x, y) != b.pixel(x, y))
31+
if (a.pixelColor(x, y).rgba() != b.pixelColor(x, y).rgba())
3232
c++;
3333
}
3434
}

0 commit comments

Comments
 (0)