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-18 16:19:14 +00:00
2009-01-16 22:13:44 +00:00
2009-02-16 12:46:36 +00:00
2008-10-30 17:04:34 +00:00
2009-02-16 12:46:36 +00:00
2008-04-09 14:18:42 +00:00
2008-10-30 17:04:34 +00:00
2009-01-28 17:20:15 +00:00
2008-10-30 17:04:34 +00:00
2009-02-16 12:46:37 +00:00
2009-02-18 16:56:39 +00:00
2009-02-18 17:32:23 +00:00
2009-02-02 12:07:28 +00:00
2009-01-20 18:47:50 +00:00
2009-01-20 18:47:50 +00:00
2009-01-08 13:18:00 +00:00
2009-01-08 13:18:00 +00:00
2009-02-16 11:02:20 +00:00
2009-01-16 14:37:42 +00:00
2009-01-22 11:42:11 +00:00
2008-12-23 15:03:11 +00:00
2009-01-23 13:08:46 +00:00
2008-10-30 17:04:34 +00:00
2009-01-24 14:32:10 +00:00
2008-10-30 17:04:34 +00:00
2009-01-20 16:42:49 +00:00
2008-10-30 17:04:34 +00:00
2009-01-20 16:42:49 +00:00
2008-12-05 13:13:37 +00:00
2009-02-18 18:30:58 +00:00
2008-10-30 17:04:34 +00:00
2009-01-23 18:41:40 +00:00
2008-10-30 17:04:34 +00:00
2009-01-24 14:32:09 +00:00
2009-01-20 16:42:49 +00:00
2009-01-20 16:20:54 +00:00
2008-12-05 13:13:37 +00:00
2009-01-13 12:51:03 +00:00
2009-01-14 15:03:30 +00:00
2008-12-19 17:48:30 +00:00
2009-01-09 14:26:35 +00:00
2008-08-06 10:20:57 +00:00
2008-10-30 17:04:34 +00:00
2009-02-04 00:14:16 +00:00
2009-01-27 14:24:31 +00:00
2009-01-20 16:20:54 +00:00
2008-10-30 17:04:34 +00:00
2008-10-16 10:28:17 +00:00
2008-10-30 17:04:34 +00:00
2008-11-18 09:50:03 +00:00
2009-01-28 16:24:02 +00:00
2007-12-25 11:41:10 +00:00
2007-08-20 20:16:15 +00:00
2009-02-14 11:38:16 +00:00
2009-02-14 11:38:16 +00:00
2008-06-06 13:44:22 +00:00
2008-10-30 17:04:34 +00:00
2009-01-20 16:20:54 +00:00
2009-01-20 16:20:55 +00:00
2008-05-09 16:27:06 +00:00
2008-10-30 17:04:34 +00:00
2008-11-26 16:46:48 +00:00
2008-10-30 17:04:34 +00:00
2008-03-09 19:07:17 +00:00
2008-10-30 17:04:34 +00:00
2009-01-23 12:10:50 +00:00
2009-01-08 11:15:09 +00:00
2008-04-23 13:58:58 +00:00
2008-06-10 06:37:46 +00:00
2008-08-05 10:54:40 +00:00
2009-02-14 11:31:00 +00:00
2009-02-14 11:31:00 +00:00
2009-02-18 16:00:52 +00:00
2009-01-27 14:43:44 +00:00
2009-01-20 16:42:49 +00:00
2009-01-20 23:40:25 +00:00
2009-01-20 23:40:25 +00:00
2008-01-09 14:18:53 +00:00
2008-07-30 10:32:25 +00:00
2008-10-30 17:04:34 +00:00
2009-01-20 16:20:54 +00:00
2008-12-21 21:52:50 +00:00
2009-02-14 11:38:16 +00:00
2009-01-28 17:20:15 +00:00
2008-10-30 17:04:34 +00:00
2008-11-25 13:19:48 +00:00
2008-10-30 17:04:34 +00:00
2008-08-04 16:21:27 +00:00
2008-08-04 16:21:27 +00:00
2009-01-20 18:24:58 +00:00
2008-10-30 17:04:34 +00:00
2007-11-14 11:32:24 +00:00
2008-10-30 17:04:34 +00:00
2008-11-18 15:08:40 +00:00
2008-11-18 15:08:40 +00:00
2008-11-18 15:08:40 +00:00
2008-11-18 15:08:40 +00:00
2008-06-03 20:15:11 +00:00
2008-10-30 17:04:34 +00:00
2008-04-04 15:02:11 +00:00
2008-10-30 17:04:34 +00:00
2009-02-18 16:00:52 +00:00
2009-01-23 15:16:21 +00:00
2009-02-18 16:00:51 +00:00
2009-02-05 19:54:48 +00:00
2009-02-18 16:00:52 +00:00
2009-01-27 16:40:51 +00:00
2009-01-27 11:25:06 +00:00
2008-10-30 17:04:34 +00:00
2008-09-23 13:25:31 +00:00
2008-10-30 17:04:34 +00:00
2009-01-27 14:43:44 +00:00
2009-01-22 12:11:25 +00:00
2009-01-21 17:35:47 +00:00
2008-02-12 17:17:52 +00:00
2008-10-30 17:04:34 +00:00
2008-03-31 17:15:02 +00:00
2009-01-27 15:18:45 +00:00
2009-01-27 16:14:35 +00:00