From f32dca44e225757d672a780c0d8ce6f200af7316 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 3 Aug 2007 15:40:11 +0000 Subject: [PATCH] 2007-08-03 Emmanuele Bassi * clutter/clutter-behaviour-ellipse.c: (clutter_behaviour_ellipse_get_angle_tilt): Avoid recursion by fixing a typo. (clutter_behaviour_ellipse_get_angle_begin), (clutter_behaviour_ellipse_get_angle_end): Correct the angles here too. 2007-08-03 Emmanuele Bassi --- ChangeLog | 10 ++++++++++ clutter/clutter-behaviour-ellipse.c | 10 +++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4ea522a9e..c44205fbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-08-03 Emmanuele Bassi + + * clutter/clutter-behaviour-ellipse.c: + (clutter_behaviour_ellipse_get_angle_tilt): Avoid recursion + by fixing a typo. + + (clutter_behaviour_ellipse_get_angle_begin), + (clutter_behaviour_ellipse_get_angle_end): Correct the angles + here too. + 2007-08-03 Emmanuele Bassi * clutter/clutter-behaviour-ellipse.c: diff --git a/clutter/clutter-behaviour-ellipse.c b/clutter/clutter-behaviour-ellipse.c index be72a6f43..2d9635e7e 100644 --- a/clutter/clutter-behaviour-ellipse.c +++ b/clutter/clutter-behaviour-ellipse.c @@ -187,7 +187,7 @@ clutter_behaviour_ellipse_alpha_notify (ClutterBehaviour *behave, ClutterBehaviourEllipse *self = CLUTTER_BEHAVIOUR_ELLIPSE (behave); ClutterBehaviourEllipsePrivate *priv = self->priv; knot3d knot; - ClutterAngle angle; + ClutterAngle angle = 0; if ((priv->angle_end >= priv->angle_begin && priv->direction == CLUTTER_ROTATE_CW) || @@ -838,7 +838,7 @@ clutter_behaviour_ellipse_get_angle_begin (ClutterBehaviourEllipse *self) { g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0.0); - return CLUTTER_ANGLE_TO_DEG (self->priv->angle_begin); + return CLUTTER_ANGLE_TO_DEG (self->priv->angle_begin + 256); } /** @@ -923,7 +923,7 @@ clutter_behaviour_ellipse_get_angle_end (ClutterBehaviourEllipse *self) { g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0.0); - return CLUTTER_ANGLE_TO_DEG (self->priv->angle_end); + return CLUTTER_ANGLE_TO_DEG (self->priv->angle_end + 256); } /** @@ -1040,8 +1040,8 @@ clutter_behaviour_ellipse_get_angle_tilt (ClutterBehaviourEllipse *self, { g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0.0); - return CLUTTER_ANGLE_TO_DEG (clutter_behaviour_ellipse_get_angle_tilt (self, - axis)); + return CLUTTER_ANGLE_TO_DEG (clutter_behaviour_ellipse_get_angle_tiltx (self, + axis)); } /**