From 571bf5af6df970afed8d553559e0faaff021b7ab Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 11 Sep 2020 17:46:13 -0300 Subject: [PATCH] clutter/pan-action: Use graphene APIs https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439 --- clutter/clutter/clutter-pan-action.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-pan-action.c b/clutter/clutter/clutter-pan-action.c index 04b67293c..5ad82ff6f 100644 --- a/clutter/clutter/clutter-pan-action.c +++ b/clutter/clutter/clutter-pan-action.c @@ -355,11 +355,14 @@ clutter_pan_action_real_pan (ClutterPanAction *self, { gfloat dx, dy; graphene_matrix_t transform; + graphene_matrix_t translate; clutter_pan_action_get_constrained_motion_delta (self, 0, &dx, &dy); clutter_actor_get_child_transform (actor, &transform); - cogl_matrix_translate (&transform, dx, dy, 0.0f); + graphene_matrix_init_translate (&translate, + &GRAPHENE_POINT3D_INIT (dx, dy, 0.0f)); + graphene_matrix_multiply (&translate, &transform, &transform); clutter_actor_set_child_transform (actor, &transform); return TRUE; }