[pango/test-coverage: 5/15] matrix: Cosmetics




commit e086d73b93b66eb1e9667245388ea1e0ed47c724
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 26 22:20:42 2021 -0400

    matrix: Cosmetics

 pango/pango-matrix.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/pango/pango-matrix.c b/pango/pango-matrix.c
index 666fe55a..a066eb57 100644
--- a/pango/pango-matrix.c
+++ b/pango/pango-matrix.c
@@ -461,17 +461,18 @@ pango_matrix_transform_pixel_rectangle (const PangoMatrix *matrix,
   min_x = max_x = quad_x[0];
   min_y = max_y = quad_y[0];
 
-  for (i=1; i < 4; i++) {
+  for (i=1; i < 4; i++)
+    {
       if (quad_x[i] < min_x)
-         min_x = quad_x[i];
+        min_x = quad_x[i];
       else if (quad_x[i] > max_x)
-         max_x = quad_x[i];
+        max_x = quad_x[i];
 
       if (quad_y[i] < min_y)
-         min_y = quad_y[i];
+        min_y = quad_y[i];
       else if (quad_y[i] > max_y)
-         max_y = quad_y[i];
-  }
+        max_y = quad_y[i];
+    }
 
   rect->x      = floor (min_x);
   rect->y      = floor (min_y);


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