Neil Roberts a86b9834d3 [ClutterBehaviourRotate] Fix up some breakage from the cogl-float branch merge
The rotation angle calculated in clutter_behaviour_rotate_alpha_notify
gets applied to each actor using clutter_behaviour_actors_foreach. The
angle is a ClutterFixed value. Before the cogl float branch merge it
was stuffed into a gpointer using GPOINTER_TO_UINT. The pointer was
then converted back to a uint and cast to a ClutterFixed which worked
out fine even for negative numbers.

After the cogl-float merge the angle is effectively a gfloat. This
gets cast to a uint and stored in a pointer and converted back to a
float via a uint at the other end. However this fails for negative
numbers because a uint -> float conversion can't take advantage of
overflow to preserve the sign so you end up with a large number.

It also had the side effect that it only rotated in whole degrees.

This commit fixes the problem by just passing the ClutterFixed value
inside a closure struct instead of trying to stuff it into a pointer.
2009-02-18 18:30:58 +00:00
..
2009-02-16 12:46:37 +00:00
2009-01-20 18:47:50 +00:00
2009-01-20 18:47:50 +00:00
2009-01-27 14:24:31 +00:00
2009-01-20 23:40:25 +00:00
2009-01-20 23:40:25 +00:00
2009-01-27 16:40:51 +00:00
2009-01-21 17:35:47 +00:00
2009-01-27 15:18:45 +00:00
2009-01-27 16:14:35 +00:00