[mutter/gbsneto/graphene-matrix: 59/73] clutter/paint-nodes: Use graphene APIs




commit eff662f7d7596863b30254aead9a940a0c819d2e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Sep 11 17:43:03 2020 -0300

    clutter/paint-nodes: Use graphene APIs
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439

 clutter/clutter/clutter-paint-nodes.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter/clutter-paint-nodes.c b/clutter/clutter/clutter-paint-nodes.c
index 3d9fa85e29..3fb750dbcd 100644
--- a/clutter/clutter/clutter-paint-nodes.c
+++ b/clutter/clutter/clutter-paint-nodes.c
@@ -238,7 +238,7 @@ clutter_transform_node_class_init (ClutterTransformNodeClass *klass)
 static void
 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);
   if (transform)
-    res->transform = *transform;
+    graphene_matrix_init_from_matrix (&res->transform, transform);
 
   return (ClutterPaintNode *) res;
 }
@@ -1381,7 +1381,7 @@ clutter_layer_node_class_init (ClutterLayerNodeClass *klass)
 static void
 clutter_layer_node_init (ClutterLayerNode *self)
 {
-  cogl_matrix_init_identity (&self->projection);
+  graphene_matrix_init_identity (&self->projection);
 }
 
 /*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]