make clutter_actor_get_transformed_point input relative to actor; feed actor depth...
authorTomas Frydrych <tf@openedhand.com>
Fri, 1 Jun 2007 15:15:13 +0000 (15:15 +0000)
committerTomas Frydrych <tf@openedhand.com>
Fri, 1 Jun 2007 15:15:13 +0000 (15:15 +0000)
ChangeLog
clutter/clutter-actor.c

index 42c1498..d5c185b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-01  Tomas Frydrych  <tf@openedhand.com>
+
+       * clutter/clutter-actor.c:
+       (clutter_actor_get_transformed_point):
+       Make input again relative to the actor; feed depth into transform.
+       
 2007-06-01  Neil J. Patel  <njp@o-hand.com>
 
        * clutter/clutter-entry.c: (clutter_entry_class_init),
index 02e69b8..b98e616 100644 (file)
@@ -713,9 +713,9 @@ clutter_actor_get_transformed_point (ClutterActor *actor,
   
   mtx_create (priv, &mtx[0], mtx_p);
 
-  *x_return = CLUTTER_UNITS_FROM_INT(x) - priv->coords.x1;
-  *y_return = CLUTTER_UNITS_FROM_INT(y) - priv->coords.y1;
-  *z_return = 0;
+  *x_return = CLUTTER_UNITS_FROM_INT(x);
+  *y_return = CLUTTER_UNITS_FROM_INT(y);
+  *z_return = CLUTTER_INT_TO_FIXED (priv->z);
 
   mtx_transform (&mtx[0], x_return, y_return, z_return);
 }