From 8c32dfa88b9deedb5add135301a0f6b1128882ed Mon Sep 17 00:00:00 2001 From: thestig Date: Fri, 29 Apr 2016 18:14:37 -0700 Subject: Subtract instead of adding the negation. Do more cleanup in modified files. Review-Url: https://codereview.chromium.org/1938613003 --- core/fxge/ge/fx_ge_text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge') diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/ge/fx_ge_text.cpp index f65e34a3e8..9ad93d872a 100644 --- a/core/fxge/ge/fx_ge_text.cpp +++ b/core/fxge/ge/fx_ge_text.cpp @@ -1580,7 +1580,7 @@ CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph(CFX_Font* pFont, if (pFont->IsVertical()) ft_matrix.yx += ft_matrix.yy * skew / 100; else - ft_matrix.xy += -ft_matrix.xx * skew / 100; + ft_matrix.xy -= ft_matrix.xx * skew / 100; } if (pSubstFont->m_SubstFlags & FXFONT_SUBST_MM) { pFont->AdjustMMParams(glyph_index, dest_width, @@ -1850,7 +1850,7 @@ CFX_PathData* CFX_Font::LoadGlyphPath(uint32_t glyph_index, int dest_width) { if (m_bVertical) ft_matrix.yx += ft_matrix.yy * skew / 100; else - ft_matrix.xy += -ft_matrix.xx * skew / 100; + ft_matrix.xy -= ft_matrix.xx * skew / 100; } if (m_pSubstFont->m_SubstFlags & FXFONT_SUBST_MM) { AdjustMMParams(glyph_index, dest_width, m_pSubstFont->m_Weight); -- cgit v1.2.3