mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
clutter/desaturate-effect: Use fabs() with passed double
Fixes a warning about passing a double to fabsf(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
parent
ad76c60ce3
commit
863a519f00
@ -308,12 +308,12 @@ clutter_desaturate_effect_new (gdouble factor)
|
||||
*/
|
||||
void
|
||||
clutter_desaturate_effect_set_factor (ClutterDesaturateEffect *effect,
|
||||
gdouble factor)
|
||||
double factor)
|
||||
{
|
||||
g_return_if_fail (CLUTTER_IS_DESATURATE_EFFECT (effect));
|
||||
g_return_if_fail (factor >= 0.0 && factor <= 1.0);
|
||||
|
||||
if (fabsf (effect->factor - factor) >= 0.00001)
|
||||
if (fabs (effect->factor - factor) >= 0.00001)
|
||||
{
|
||||
effect->factor = factor;
|
||||
update_factor_uniform (effect);
|
||||
|
Loading…
Reference in New Issue
Block a user