mirror of
https://github.com/brl/mutter.git
synced 2025-03-10 21:35:06 +00:00
removed unnecessary CFX_MUL from clutter_actor_get_abs_position
This commit is contained in:
parent
92754aaeee
commit
aab511d319
@ -1,3 +1,9 @@
|
|||||||
|
2007-05-15 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-actor.c:
|
||||||
|
(clutter_actor_get_abs_position):
|
||||||
|
Removed unnecessary CFX_MUL().
|
||||||
|
|
||||||
2007-05-15 Tomas Frydrych <tf@openedhand.com>
|
2007-05-15 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-behaviour-ellipse.h:
|
* clutter/clutter-behaviour-ellipse.h:
|
||||||
|
@ -1111,10 +1111,8 @@ clutter_actor_get_abs_position (ClutterActor *self,
|
|||||||
if (parent_scale_x != CFX_ONE ||
|
if (parent_scale_x != CFX_ONE ||
|
||||||
parent_scale_y != CFX_ONE)
|
parent_scale_y != CFX_ONE)
|
||||||
{
|
{
|
||||||
fx = CLUTTER_FIXED_MUL (CLUTTER_INT_TO_FIXED (box.x1),
|
fx = box.x1 * parent_scale_x;
|
||||||
parent_scale_x);
|
fy = box.y1 * parent_scale_y;
|
||||||
fy = CLUTTER_FIXED_MUL (CLUTTER_INT_TO_FIXED (box.y1),
|
|
||||||
parent_scale_y);
|
|
||||||
|
|
||||||
box.x1 = CLUTTER_FIXED_INT (fx);
|
box.x1 = CLUTTER_FIXED_INT (fx);
|
||||||
box.y1 = CLUTTER_FIXED_INT (fy);
|
box.y1 = CLUTTER_FIXED_INT (fy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user