summaryrefslogtreecommitdiff
path: root/pango/pango-matrix.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-26 22:20:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-06-28 00:05:09 -0400
commit97789188e8dd5fb06d7f4a15604fd5f8be918527 (patch)
tree4d0dc60c85769b7ea63c8fb0700f29647ca32d6a /pango/pango-matrix.c
parentb5b932e96c8b27c06e5fa4219964b1201fdf6b01 (diff)
downloadpango-97789188e8dd5fb06d7f4a15604fd5f8be918527.tar.gz
matrix: Cosmetics
Diffstat (limited to 'pango/pango-matrix.c')
-rw-r--r--pango/pango-matrix.c13
1 files 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);