[mutter/gbsneto/graphene-matrix: 15/27] clutter/pan-action: Use graphene APIs




commit 7fdabae0efa89a09caf6ba0efb340dea7e2de138
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Sep 11 17:46:13 2020 -0300

    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 04b67293cf..5ad82ff6f5 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;
 }


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