summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-09-18 13:03:16 -0400
committerBehdad Esfahbod <behdad@behdad.org>2017-09-18 13:03:16 -0400
commitff054e857c62d416c079d73d482977094211d57f (patch)
tree11a421d79cae984747c18c316639f0724dc2317d
parent711af0c1da93660c82441b32991f7120488ce03e (diff)
downloadpango-ff054e857c62d416c079d73d482977094211d57f.tar.gz
Fix warning
https://bugzilla.gnome.org/show_bug.cgi?id=787194
-rw-r--r--pango/pangofc-shape.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index 60f829f3..57f70000 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -206,13 +206,9 @@ pango_fc_hb_font_get_glyph_h_origin (hb_font_t *font, void *font_data,
return FALSE;
/* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
- * have a Y growing upward. Hence the extra negation. */
- *x = PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX);
- *y = PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY));
-
- /* XXX */
- *x = -*x;
- *y = *y;
+ * have a Y growing upward. Hence the extra negations. */
+ *x = -PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX);
+ *y = +PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY));
return TRUE;
}