[pango] Fix warning
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix warning
- Date: Mon, 18 Sep 2017 17:03:33 +0000 (UTC)
commit ff054e857c62d416c079d73d482977094211d57f
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Sep 18 13:03:16 2017 -0400
Fix warning
https://bugzilla.gnome.org/show_bug.cgi?id=787194
pango/pangofc-shape.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index 60f829f..57f7000 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]