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:
Jonas Dreßler 2020-05-09 21:11:56 +02:00 committed by verdre
parent 04e983383f
commit 0a986fc885

View File

@ -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;