[mutter/gbsneto/graphene-matrix: 32/44] clutter/pan-action: Use graphene APIs
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene-matrix: 32/44] clutter/pan-action: Use graphene APIs
- Date: Tue, 6 Oct 2020 15:00:02 +0000 (UTC)
commit d98ab29422bda502493566446c15f90064c37ac9
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]