Fixed invalid assumption about z cooordiance in calculation of

tilt in y axis.
This commit is contained in:
Tomas Frydrych 2007-07-30 16:09:40 +00:00
parent 2cc4a23820
commit 936fea0b37
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2007-07-30 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse:
(clutter_behaviour_ellipse_advance):
Fixed invalid assumption about z cooordiance in calculation of
tilt in y axis.
2007-07-30 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:

View File

@ -147,9 +147,11 @@ clutter_behaviour_ellipse_advance (ClutterBehaviourEllipse *e,
{
ClutterFixed x2, z2;
x2 = x * clutter_cosi (priv->angle_tilt_y);
x2 = x * clutter_cosi (priv->angle_tilt_y)
- z * clutter_sini (priv->angle_tilt_y);
z2 = x * clutter_sini (priv->angle_tilt_y);
z2 = z * clutter_cosi (priv->angle_tilt_y)
+ x * clutter_sini (priv->angle_tilt_y);
x = CLUTTER_FIXED_INT (x2);
z = CLUTTER_FIXED_INT (z2);