mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
clutter/tests: Remove usage of ABSOLUTE_ORIGIN_CHANGED flag
We're going to remove this allocation flag, so stop using in the interactive test-layout test. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1245
This commit is contained in:
parent
04e983383f
commit
0a986fc885
@ -338,17 +338,8 @@ my_thing_allocate (ClutterActor *self,
|
|||||||
graphene_point3d_t v1 = { 0, }, v2 = { 0, };
|
graphene_point3d_t v1 = { 0, }, v2 = { 0, };
|
||||||
ClutterActorBox transformed_box = { 0, };
|
ClutterActorBox transformed_box = { 0, };
|
||||||
|
|
||||||
/* origin */
|
v1.x = box->x1;
|
||||||
if (!(flags & CLUTTER_ABSOLUTE_ORIGIN_CHANGED))
|
v1.y = box->y1;
|
||||||
{
|
|
||||||
v1.x = 0;
|
|
||||||
v1.y = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
v1.x = box->x1;
|
|
||||||
v1.y = box->y1;
|
|
||||||
}
|
|
||||||
|
|
||||||
clutter_actor_apply_transform_to_point (child, &v1, &v2);
|
clutter_actor_apply_transform_to_point (child, &v1, &v2);
|
||||||
transformed_box.x1 = v2.x;
|
transformed_box.x1 = v2.x;
|
||||||
|
Loading…
Reference in New Issue
Block a user