[gtk/modern-testsuite: 4/5] reftests: Make diff pixels always opaque
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/modern-testsuite: 4/5] reftests: Make diff pixels always opaque
- Date: Wed, 15 Sep 2021 15:01:22 +0000 (UTC)
commit 72f81db86dc2aa8357edc9b267e41bc0ae6cca35
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 15 16:39:09 2021 +0200
reftests: Make diff pixels always opaque
We had pixels that did not differ in alpha and we then set 0 alpha
difference hich made the pixel invisible. Oops.
testsuite/reftests/reftest-compare.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/testsuite/reftests/reftest-compare.c b/testsuite/reftests/reftest-compare.c
index cd6320f5fa..ff39ce6a58 100644
--- a/testsuite/reftests/reftest-compare.c
+++ b/testsuite/reftests/reftest-compare.c
@@ -143,6 +143,8 @@ buffer_diff_core (const guchar *buf_a,
guint8 alpha = diff_pixel >> 24;
diff_pixel = alpha * 0x010101;
}
+ /* make the pixel fully opaque */
+ diff_pixel |= 0xff000000;
row[x] = diff_pixel;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]