diff options
author | Hossein <hossein@libreoffice.org> | 2021-11-19 18:11:39 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-20 11:02:21 +0100 |
commit | 9f3271297e7ce980fdb09a063ce51435314066f6 (patch) | |
tree | c665dc1a5f1fbd64e8bc37a3d2f1dbff4436196c /vcl/unx | |
parent | 6d528515c5ed809da7ecfe27d105cfb173c9f768 (diff) |
Use C++17 hexadecimal exponent floating point literals
Using new syntax for the power of 2 exponent instead of using shift left (<<) operator
Change-Id: Iaa627800fb35af37a6b0efcd939f1d5f78f70e5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125458
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx index 29fca5443a6c..f199074a75c7 100644 --- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx +++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx @@ -942,7 +942,7 @@ bool FreetypeFont::GetGlyphOutline(sal_GlyphId nId, basegfx::B2DPolyPolygon& rB2 // convert to basegfx polypolygon // TODO: get rid of the intermediate tools polypolygon rB2DPolyPoly = aToolPolyPolygon.getB2DPolyPolygon(); - rB2DPolyPoly.transform(basegfx::utils::createScaleB2DHomMatrix( +1.0/(1<<6), -1.0/(1<<6) )); + rB2DPolyPoly.transform(basegfx::utils::createScaleB2DHomMatrix( +0x1p-6, -0x1p-6 )); return true; } |