Convert clutter_path_get_position to take a gdouble instead of an alpha value
The gdouble value represents an interval along the path from 0.0 to 1.0. This makes more sense than using an alpha value because paths are not directly related to ClutterAlphas and the rest of the Clutter API tends to expose gdouble arguments.
This commit is contained in:
@ -131,7 +131,10 @@ clutter_behaviour_path_alpha_notify (ClutterBehaviour *behave,
|
||||
guint knot_num;
|
||||
|
||||
if (priv->path)
|
||||
knot_num = clutter_path_get_position (priv->path, alpha_value, &position);
|
||||
knot_num = clutter_path_get_position (priv->path,
|
||||
alpha_value
|
||||
/ (gdouble) CLUTTER_ALPHA_MAX_ALPHA,
|
||||
&position);
|
||||
else
|
||||
{
|
||||
memset (&position, 0, sizeof (position));
|
||||
|
Reference in New Issue
Block a user