From 0c1e5b4ee5718cc30cb06f146262d361381a78eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sat, 21 Mar 2020 00:04:58 +0100 Subject: [PATCH] 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 fb69f6c60..6b534e69b 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