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:
parent
2636ff7430
commit
36f1a38c3b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue