[pango/pango2: 9/301] serialize: Use pango_matrix_equal




commit d3df821c486723492860b946cb208cabaccded67
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 2dab93b47..d9d92be62 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]