summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-06-14 14:10:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-14 17:14:16 +0100
commitf1f6ac03aa41efce53d08ac16dc33f6f6bb3e8a7 (patch)
tree93b6eba70e67adb054bc4bc7c25b8269e48132dd /vcl/unx
parent4c8aa30155ef9ec9ab00b5d674bddc2b4929887a (diff)
Resolves: #i122456# Corrected tessellation for fat lines
(cherry picked from commit eeba25ef43bb4ec175b16118b3b4c62f50f40ed5) Change-Id: Ic482dd1230793d505abd2d0551cb527ca5c816f6
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index e02434923ed2..eacd35b477ae 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -1163,7 +1163,10 @@ bool X11SalGraphics::drawPolyLine(
// #i11575#desc5#b adjust B2D tesselation result to raster positions
basegfx::B2DPolygon aPolygon = rPolygon;
const double fHalfWidth = 0.5 * rLineWidth.getX();
- aPolygon.transform( basegfx::tools::createTranslateB2DHomMatrix(+fHalfWidth,+fHalfWidth) );
+
+ // #i122456# This is probably thought to happen to align hairlines to pixel positions, so
+ // it should be a 0.5 translation, not more. It will definitely go wrong with fat lines
+ aPolygon.transform( basegfx::tools::createTranslateB2DHomMatrix(0.5, 0.5) );
// shortcut for hairline drawing to improve performance
bool bDrawnOk = true;