clutter/scroll-actor: Use graphene APIs

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
Georges Basile Stavracas Neto 2020-09-11 17:48:03 -03:00
parent 571bf5af6d
commit 462ade5afe

View File

@ -102,8 +102,6 @@ clutter_scroll_actor_set_scroll_to_internal (ClutterScrollActor *self,
graphene_matrix_t m;
float dx, dy;
cogl_matrix_init_identity (&m);
if (graphene_point_equal (&priv->scroll_to, point))
return;
@ -122,7 +120,8 @@ clutter_scroll_actor_set_scroll_to_internal (ClutterScrollActor *self,
else
dy = 0.f;
cogl_matrix_translate (&m, dx, dy, 0.f);
graphene_matrix_init_translate (&m,
&GRAPHENE_POINT3D_INIT (dx, dy, 0.f));
clutter_actor_set_child_transform (actor, &m);
}