From 7ada1c0ae0ec1a67463138f53ed545e60dcbf855 Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Thu, 31 May 2007 10:11:06 +0000 Subject: [PATCH] Changed behaviour so that a beginning angle of 0 would correspond to 12 o'clock --- ChangeLog | 6 ++++++ clutter/clutter-behaviour-ellipse.c | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index acdaaee14..6c9f4b6c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-31 Tomas Frydrych + + * clutter/clutter-behaviour-ellipse.c: + Changed behaviour so that a beginning angle of 0 would correspond + to 12 o'clock. + 2007-05-31 Tomas Frydrych * clutter/clutter-fixed.h: diff --git a/clutter/clutter-behaviour-ellipse.c b/clutter/clutter-behaviour-ellipse.c index 44da61027..51a9937bd 100644 --- a/clutter/clutter-behaviour-ellipse.c +++ b/clutter/clutter-behaviour-ellipse.c @@ -372,9 +372,9 @@ clutter_behaviour_ellipse_init (ClutterBehaviourEllipse * self) * center * * Creates a behaviour that drives actors along an elliptical path with - * given center, width and height; the movement begins at angle_begin and - * ends at angle_end; if angle_end > angle_begin, the movement is in - * counter-clockwise direction, clockwise other wise. + * given center, width and height; the movement begins at angle_begin (with 0 + * corresponding to 12 o'clock) and ends at angle_end; if angle_end > angle_begin, + * the movement is in clockwise direction, counter-clockwise otherwise. * * Return value: a #ClutterBehaviour * @@ -403,8 +403,8 @@ clutter_behaviour_ellipse_new (ClutterAlpha * alpha, "center", ¢er, "width", width, "height", height, - "angle-begin", CLUTTER_ANGLE_FROM_DEG (begin), - "angle-end", CLUTTER_ANGLE_FROM_DEG (end), + "angle-begin", CLUTTER_ANGLE_FROM_DEG (begin) - 256, + "angle-end", CLUTTER_ANGLE_FROM_DEG (end) - 256, "angle-tilt", CLUTTER_ANGLE_FROM_DEG (tilt), NULL); @@ -420,13 +420,13 @@ clutter_behaviour_ellipse_new (ClutterAlpha * alpha, * @height: height of the ellipse * @begin: #ClutterFixed angle in degrees at which movement begins * @end: #ClutterFixed angle in degrees at which movement ends - * @tilt: #ClutterFixed angle in degrees with which the ellipse should be tilted around its - * center + * @tilt: #ClutterFixed angle in degrees with which the ellipse should be + * tilted around its center * * Creates a behaviour that drives actors along an elliptical path with - * given center, width and height; the movement begins at angle_begin and - * ends at angle_end; if angle_end > angle_begin, the movement is in - * counter-clockwise direction, clockwise other wise. + * given center, width and height; the movement begins at angle_begin (with 0 + * corresponding to 12 o'clock) and ends at angle_end; if angle_end > angle_begin, + * the movement is in clockwise direction, counter-clockwise otherwise. * * Return value: a #ClutterBehaviour * @@ -455,8 +455,8 @@ clutter_behaviour_ellipse_newx (ClutterAlpha * alpha, "center", ¢er, "width", width, "height", height, - "angle-begin", CLUTTER_ANGLE_FROM_DEGX (begin), - "angle-end", CLUTTER_ANGLE_FROM_DEGX (end), + "angle-begin", CLUTTER_ANGLE_FROM_DEGX (begin) - 256, + "angle-end", CLUTTER_ANGLE_FROM_DEGX (end) - 256, "angle-tilt", CLUTTER_ANGLE_FROM_DEGX (tilt), NULL);