[pango/pango2: 19/201] serialize: Use pango_matrix_equal




commit 167d81e7953227d5083bf4a96bae5a7ce4b2cec2
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 6 09:39:22 2022 -0400

    serialize: Use pango_matrix_equal

 pango/serializer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/serializer.c b/pango/serializer.c
index 2dab93b4..d9d92be6 100644
--- a/pango/serializer.c
+++ b/pango/serializer.c
@@ -613,7 +613,7 @@ add_font (GtkJsonPrinter *printer,
     }
 
   pango_font_get_matrix (font, &matrix);
-  if (memcmp (&matrix, &(PangoMatrix)PANGO_MATRIX_INIT, sizeof (PangoMatrix)) != 0)
+  if (!pango_matrix_equal (&matrix, &(const PangoMatrix)PANGO_MATRIX_INIT))
     {
       gtk_json_printer_start_array (printer, "matrix");
       gtk_json_printer_add_number (printer, NULL, matrix.xx);


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