1
0
Fork 0

clutter/color-state: Compare chromaticity with 0.0001f epsilon

This follows the precision used by the color management protocol on
primaries.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4020>
This commit is contained in:
Joan Torres 2024-09-27 10:03:50 +02:00 committed by Marge Bot
parent 2636ff7430
commit 36f1a38c3b

View file

@ -654,8 +654,9 @@ chromaticity_equal (float x1,
float y2) float y2)
{ {
return G_APPROX_VALUE (x1, x2, 0.000001f) && /* FIXME: the next color managment version will use more precision */
G_APPROX_VALUE (y1, y2, 0.000001f); return G_APPROX_VALUE (x1, x2, 0.0001f) &&
G_APPROX_VALUE (y1, y2, 0.0001f);
} }
static gboolean static gboolean