clutter/paint-nodes: Use graphene APIs
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
parent
aca2880c6a
commit
eff662f7d7
@ -238,7 +238,7 @@ clutter_transform_node_class_init (ClutterTransformNodeClass *klass)
|
|||||||
static void
|
static void
|
||||||
clutter_transform_node_init (ClutterTransformNode *self)
|
clutter_transform_node_init (ClutterTransformNode *self)
|
||||||
{
|
{
|
||||||
cogl_matrix_init_identity (&self->transform);
|
graphene_matrix_init_identity (&self->transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -255,7 +255,7 @@ clutter_transform_node_new (const graphene_matrix_t *transform)
|
|||||||
|
|
||||||
res = _clutter_paint_node_create (CLUTTER_TYPE_TRANSFORM_NODE);
|
res = _clutter_paint_node_create (CLUTTER_TYPE_TRANSFORM_NODE);
|
||||||
if (transform)
|
if (transform)
|
||||||
res->transform = *transform;
|
graphene_matrix_init_from_matrix (&res->transform, transform);
|
||||||
|
|
||||||
return (ClutterPaintNode *) res;
|
return (ClutterPaintNode *) res;
|
||||||
}
|
}
|
||||||
@ -1381,7 +1381,7 @@ clutter_layer_node_class_init (ClutterLayerNodeClass *klass)
|
|||||||
static void
|
static void
|
||||||
clutter_layer_node_init (ClutterLayerNode *self)
|
clutter_layer_node_init (ClutterLayerNode *self)
|
||||||
{
|
{
|
||||||
cogl_matrix_init_identity (&self->projection);
|
graphene_matrix_init_identity (&self->projection);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user