mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
2007-12-07 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c: (_clutter_actor_apply_modelview_transform): Moved offset translation after rotation so that rotation coords are also relative to the offset point.
This commit is contained in:
parent
e1b1bc289c
commit
797805c6e7
@ -26,6 +26,13 @@
|
||||
(clutter_actor_get_positionu): Add unit-based accessors to
|
||||
the size and position.
|
||||
|
||||
2007-12-07 Tomas Frydrych <tf@openedhand.com>
|
||||
|
||||
* clutter/clutter-actor.c:
|
||||
(_clutter_actor_apply_modelview_transform):
|
||||
Moved offset translation after rotation so that rotation coords
|
||||
are also relative to the offset point.
|
||||
|
||||
2007-12-07 Tomas Frydrych <tf@openedhand.com>
|
||||
|
||||
* clutter/clutter-behaviour-ellipse.c:
|
||||
|
@ -783,13 +783,6 @@ _clutter_actor_apply_modelview_transform (ClutterActor * self)
|
||||
cogl_scale (priv->scale_x, priv->scale_y);
|
||||
}
|
||||
|
||||
if (parent && (priv->anchor_x || priv->anchor_y))
|
||||
{
|
||||
cogl_translatex (CLUTTER_UNITS_TO_FIXED (-priv->anchor_x),
|
||||
CLUTTER_UNITS_TO_FIXED (-priv->anchor_y),
|
||||
0);
|
||||
}
|
||||
|
||||
if (priv->rzang)
|
||||
{
|
||||
cogl_translatex (CLUTTER_UNITS_TO_FIXED (priv->rzx),
|
||||
@ -829,6 +822,13 @@ _clutter_actor_apply_modelview_transform (ClutterActor * self)
|
||||
CLUTTER_UNITS_TO_FIXED (-(priv->z + priv->rxz)));
|
||||
}
|
||||
|
||||
if (parent && (priv->anchor_x || priv->anchor_y))
|
||||
{
|
||||
cogl_translatex (CLUTTER_UNITS_TO_FIXED (-priv->anchor_x),
|
||||
CLUTTER_UNITS_TO_FIXED (-priv->anchor_y),
|
||||
0);
|
||||
}
|
||||
|
||||
if (priv->z)
|
||||
cogl_translatex (0, 0, priv->z);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user