Fixed invalid assumption about z cooordiance in calculation of
tilt in y axis.
This commit is contained in:
parent
2cc4a23820
commit
936fea0b37
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user