[mutter] clutter/tests: Remove usage of ABSOLUTE_ORIGIN_CHANGED flag



commit 0a986fc885092e267f3441e50133f48a9b78b58d
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Sat May 9 21:11:56 2020 +0200

    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

 src/tests/clutter/interactive/test-layout.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/tests/clutter/interactive/test-layout.c b/src/tests/clutter/interactive/test-layout.c
index 9666f15df9..ad9b4e209c 100644
--- a/src/tests/clutter/interactive/test-layout.c
+++ b/src/tests/clutter/interactive/test-layout.c
@@ -338,17 +338,8 @@ my_thing_allocate (ClutterActor           *self,
               graphene_point3d_t v1 = { 0, }, v2 = { 0, };
               ClutterActorBox transformed_box = { 0, };
 
-              /* origin */
-              if (!(flags & CLUTTER_ABSOLUTE_ORIGIN_CHANGED))
-                {
-                  v1.x = 0;
-                  v1.y = 0;
-                }
-              else
-                {
-                  v1.x = box->x1;
-                  v1.y = box->y1;
-                }
+              v1.x = box->x1;
+              v1.y = box->y1;
 
               clutter_actor_apply_transform_to_point (child, &v1, &v2);
               transformed_box.x1 = v2.x;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]