[mutter] clutter/clone: Use scale factor of 1.0 for Z axis



commit 0c1e5b4ee5718cc30cb06f146262d361381a78eb
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Sat Mar 21 00:04:58 2020 +0100

    clutter/clone: Use scale factor of 1.0 for Z axis
    
    It seems wrong to use the scale factor of the X axis on the Z axis and
    it looks like this has been accidentally changed in commit 570fa3f044.
    
    So use a factor of 1.0 instead to not scale the Z axis at all because
    the layout machinery only works in X and Y coordinates.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1181

 clutter/clutter/clutter-clone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-clone.c b/clutter/clutter/clutter-clone.c
index fb69f6c60b..6b534e69bd 100644
--- a/clutter/clutter/clutter-clone.c
+++ b/clutter/clutter/clutter-clone.c
@@ -148,7 +148,7 @@ clutter_clone_apply_transform (ClutterActor *self, CoglMatrix *matrix)
   y_scale = clutter_actor_box_get_height (&box)
           / clutter_actor_box_get_height (&source_box);
 
-  cogl_matrix_scale (matrix, x_scale, y_scale, x_scale);
+  cogl_matrix_scale (matrix, x_scale, y_scale, 1.f);
 }
 
 static void


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