[pango/matthiasc/for-main: 66/66] Cosmetics




commit 65770576f783573eee585e46fe743a85727c4cb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 19 18:58:02 2021 -0500

    Cosmetics
    
    Rename some variables, so we actually know
    what these matrices are.

 pango/pangofc-font.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 37400664..77e99e16 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -959,25 +959,26 @@ pango_fc_font_create_hb_font (PangoFont *font)
   if (key)
     {
       const FcPattern *pattern = pango_fc_font_key_get_pattern (key);
-      const PangoMatrix *matrix;
-      PangoMatrix matrix2;
+      const PangoMatrix *ctm;
+      PangoMatrix font_matrix;
       PangoGravity gravity;
       FcMatrix fc_matrix, *fc_matrix_val;
       double x, y;
       int i;
 
-      matrix = pango_fc_font_key_get_matrix (key);
-      pango_matrix_get_font_scale_factors (matrix, &x_scale_inv, &y_scale_inv);
+      ctm = pango_fc_font_key_get_matrix (key);
+      pango_matrix_get_font_scale_factors (ctm, &x_scale_inv, &y_scale_inv);
 
       FcMatrixInit (&fc_matrix);
       for (i = 0; FcPatternGetMatrix (pattern, FC_MATRIX, i, &fc_matrix_val) == FcResultMatch; i++)
         FcMatrixMultiply (&fc_matrix, &fc_matrix, fc_matrix_val);
 
-      matrix2.xx = fc_matrix.xx;
-      matrix2.yx = fc_matrix.yx;
-      matrix2.xy = fc_matrix.xy;
-      matrix2.yy = fc_matrix.yy;
-      pango_matrix_get_font_scale_factors (&matrix2, &x, &y);
+      font_matrix.xx = fc_matrix.xx;
+      font_matrix.yx = fc_matrix.yx;
+      font_matrix.xy = fc_matrix.xy;
+      font_matrix.yy = fc_matrix.yy;
+
+      pango_matrix_get_font_scale_factors (&font_matrix, &x, &y);
 
       x_scale_inv /= x;
       y_scale_inv /= y;


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