diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-13 18:36:35 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-13 19:06:21 +0200 |
commit | e760de7db53a6ccfa0b4732d9c4639441dc22434 (patch) | |
tree | cf988b363b756cf8a478b8e02626217445c8bab6 /vcl | |
parent | 3a64e01a7e2ac65daa4f3fa623d9ef5b9ca24f7f (diff) |
The nAngle is set but never used
Change-Id: I7c8493e06ab3d7bab60f5af14100b1e25dd68fba
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx index 5dff4584068a..7ef42b88a93e 100644 --- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx +++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx @@ -753,9 +753,8 @@ static inline void SplitGlyphFlags( const FreetypeFont& rFont, sal_GlyphId& rGly void FreetypeFont::ApplyGlyphTransform( int nGlyphFlags, FT_Glyph pGlyphFT ) const { - int nAngle = GetFontSelData().mnOrientation; // shortcut most common case - if( !nAngle && !nGlyphFlags ) + if (!GetFontSelData().mnOrientation && !nGlyphFlags) return; const FT_Size_Metrics& rMetrics = maFaceFT->size->metrics; @@ -775,7 +774,6 @@ void FreetypeFont::ApplyGlyphTransform( int nGlyphFlags, FT_Glyph pGlyphFT ) con aMatrix.yx = +mnSin; break; case GF_ROTL: // left - nAngle += 900; bStretched = (mfStretch != 1.0); aVector.x = (FT_Pos)(+rMetrics.descender * mfStretch); aVector.y = -rMetrics.ascender; @@ -785,7 +783,6 @@ void FreetypeFont::ApplyGlyphTransform( int nGlyphFlags, FT_Glyph pGlyphFT ) con aMatrix.yx = (FT_Pos)(+mnCos / mfStretch); break; case GF_ROTR: // right - nAngle -= 900; bStretched = (mfStretch != 1.0); aVector.x = -maFaceFT->glyph->metrics.horiAdvance; aVector.x += (FT_Pos)(rMetrics.descender * mnSin/65536.0); @@ -797,9 +794,6 @@ void FreetypeFont::ApplyGlyphTransform( int nGlyphFlags, FT_Glyph pGlyphFT ) con break; } - while( nAngle < 0 ) - nAngle += 3600; - if( pGlyphFT->format != FT_GLYPH_FORMAT_BITMAP ) { FT_Glyph_Transform( pGlyphFT, nullptr, &aVector ); |