[gtk/wip/smcv/reftest-dedup: 1/2] reftest-compare: Fix spelling of "diff"
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/smcv/reftest-dedup: 1/2] reftest-compare: Fix spelling of "diff"
- Date: Mon, 15 Feb 2021 09:25:21 +0000 (UTC)
commit 6b29eeeb1c05c1f55289938a6b5cc83b264c6ce9
Author: Simon McVittie <smcv debian org>
Date: Sat Feb 13 18:25:18 2021 +0000
reftest-compare: Fix spelling of "diff"
This is the only non-whitespace difference between the copies in
testsuite/reftests/ and testsuite/gsk/.
Signed-off-by: Simon McVittie <smcv debian org>
testsuite/reftests/reftest-compare.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/testsuite/reftests/reftest-compare.c b/testsuite/reftests/reftest-compare.c
index 651eac9ca9..34285ace72 100644
--- a/testsuite/reftests/reftest-compare.c
+++ b/testsuite/reftests/reftest-compare.c
@@ -121,15 +121,15 @@ buffer_diff_core (const guchar *buf_a,
{
int value_a = (row_a[x] >> (channel*8)) & 0xff;
int value_b = (row_b[x] >> (channel*8)) & 0xff;
- guint channel_difff;
-
- channel_difff = ABS (value_a - value_b);
- channel_difff *= 4; /* emphasize */
- if (channel_difff)
- channel_difff += 128; /* make sure it's visible */
- if (channel_difff > 255)
- channel_difff = 255;
- diff_pixel |= channel_difff << (channel * 8);
+ guint channel_diff;
+
+ channel_diff = ABS (value_a - value_b);
+ channel_diff *= 4; /* emphasize */
+ if (channel_diff)
+ channel_diff += 128; /* make sure it's visible */
+ if (channel_diff > 255)
+ channel_diff = 255;
+ diff_pixel |= channel_diff << (channel * 8);
}
if ((diff_pixel & 0x00ffffff) == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]