cleanup: Replace cairo_matrix_t with graphene_matrix_t
Reduce cairo usage where graphene can do a much better job Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3243>
This commit is contained in:

committed by
Marge Bot

parent
379996a63e
commit
81a12a7db4
@ -134,11 +134,11 @@ set_matrix (GTask *task)
|
||||
{
|
||||
ClutterInputDevice *device = g_task_get_source_object (task);
|
||||
float *matrix = g_task_get_task_data (task);
|
||||
cairo_matrix_t dev_matrix;
|
||||
graphene_matrix_t dev_matrix;
|
||||
|
||||
cairo_matrix_init (&dev_matrix,
|
||||
matrix[0], matrix[3], matrix[1],
|
||||
matrix[4], matrix[2], matrix[5]);
|
||||
graphene_matrix_init_from_2d (&dev_matrix,
|
||||
matrix[0], matrix[3], matrix[1],
|
||||
matrix[4], matrix[2], matrix[5]);
|
||||
g_object_set (device, "device-matrix", &dev_matrix, NULL);
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
|
Reference in New Issue
Block a user