From a5cd811a9cd24f670b9369651fc40bcf99fec049 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 29 Apr 2008 21:27:52 +0000 Subject: [PATCH] * clutter/clutter-actor.c (clutter_actor_move_anchor_point): The actor position was being moved in the wrong direction. Perhaps this was a cut-and-paste bug from move_anchor_point_from_gravity because in that function ax and ay represent the old anchor position, but in this function they represent the new. --- ChangeLog | 8 ++++++++ clutter/clutter-actor.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0563db9..ec73546 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-04-29 Neil Roberts + + * clutter/clutter-actor.c (clutter_actor_move_anchor_point): The + actor position was being moved in the wrong direction. Perhaps + this was a cut-and-paste bug from move_anchor_point_from_gravity + because in that function ax and ay represent the old anchor + position, but in this function they represent the new. + 2008-04-29 Matthew Allum * clutter/glx/Makefile.am: diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 3518692..5723890 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -4645,8 +4645,8 @@ clutter_actor_move_anchor_point (ClutterActor *self, priv = self->priv; - dx = ax - priv->anchor_x; - dy = ay - priv->anchor_y; + dx = priv->anchor_x - ax; + dy = priv->anchor_y - ay; priv->anchor_x = ax; priv->anchor_y = ay; -- 2.7.4