mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
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.
This commit is contained in:
parent
de53b0c7a3
commit
3a8ec683d3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user