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:
Neil Roberts
2008-12-16 15:39:53 +00:00
parent c68cf3564e
commit ff92cc9766
4 changed files with 25 additions and 22 deletions

View File

@ -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));