mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter/scroll-actor: Use graphene APIs
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
parent
571bf5af6d
commit
462ade5afe
@ -102,8 +102,6 @@ clutter_scroll_actor_set_scroll_to_internal (ClutterScrollActor *self,
|
|||||||
graphene_matrix_t m;
|
graphene_matrix_t m;
|
||||||
float dx, dy;
|
float dx, dy;
|
||||||
|
|
||||||
cogl_matrix_init_identity (&m);
|
|
||||||
|
|
||||||
if (graphene_point_equal (&priv->scroll_to, point))
|
if (graphene_point_equal (&priv->scroll_to, point))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -122,7 +120,8 @@ clutter_scroll_actor_set_scroll_to_internal (ClutterScrollActor *self,
|
|||||||
else
|
else
|
||||||
dy = 0.f;
|
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);
|
clutter_actor_set_child_transform (actor, &m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user