diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-18 13:54:28 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-18 13:58:23 -0400 |
commit | 07909e0045d9f94329861fe2e7b3403a5c4befed (patch) | |
tree | db92bd2fe622b215964fc9da87411e0dc4472b3f /drawinglayer/source | |
parent | 35d99caff4c624285a246e7c76a2660205a1d715 (diff) |
fdo#75260: Center both primary and secondary lines wrt thier respective axes.
The closed borders connect much better this way. Now all double lines look
at least half-way decent.
Also, we shouldn't be doing any sort of pixel correction in the common code
that gets used both raster and vector drawing modes. In case we need to do
some pixel correction, we should do it in the pixel processor code.
Change-Id: I78e245c10752d0f4790a9ac664a14ce06571434e
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/primitive2d/borderlineprimitive2d.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx index b74061ee25c7..7b9348dc6fec 100644 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -200,7 +200,7 @@ primitive2d::Primitive2DReference makeSolidLinePrimitive( getStart(), getEnd(), aVector, getRGBColorLeft(), 0.0); else xRetval[0] = makeSolidLinePrimitive( - aClipRegion, aTmpStart, aTmpEnd, aVector, getRGBColorLeft(), fLeftWidth, 0.0); + aClipRegion, aTmpStart, aTmpEnd, aVector, getRGBColorLeft(), fLeftWidth, -fLeftWidth/2.0); // "outside" line @@ -209,7 +209,7 @@ primitive2d::Primitive2DReference makeSolidLinePrimitive( getStart(), getEnd(), aVector, getRGBColorRight(), fLeftWidth+mfDistance); else xRetval[1] = makeSolidLinePrimitive( - aClipRegion, aTmpStart, aTmpEnd, aVector, getRGBColorRight(), fRightWidth, fLeftWidth+mfDistance); + aClipRegion, aTmpStart, aTmpEnd, aVector, getRGBColorRight(), fRightWidth, mfDistance+fRightWidth/2.0); } else { |