make clutter_actor_get_transformed_point input relative to actor; feed actor depth into transform

This commit is contained in:
Tomas Frydrych 2007-06-01 15:15:13 +00:00
parent 71f2e05b9b
commit d82c068faf
2 changed files with 9 additions and 3 deletions

View File

@ -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),

View 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);
}