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
This commit is contained in:
Jonas Dreßler 2020-03-21 00:04:58 +01:00 committed by Georges Basile Stavracas Neto
parent ad50d2cfc4
commit 0c1e5b4ee5

View File

@ -148,7 +148,7 @@ clutter_clone_apply_transform (ClutterActor *self, CoglMatrix *matrix)
y_scale = clutter_actor_box_get_height (&box) y_scale = clutter_actor_box_get_height (&box)
/ clutter_actor_box_get_height (&source_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 static void