diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-20 12:25:16 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-21 12:13:13 +0100 |
commit | c35fae3f6b15221701cadfca3132803695607660 (patch) | |
tree | 6e048d9b4663de61a3ab19d49af6049c7fba8cd2 | |
parent | d85b975667dfba755b9c952a2b8030a7f33bba66 (diff) |
fdo#81643: Regression in rendering of borders
Regerssion from:
6a3fb868b2b8af21f7b6140424b6f8377599a786
The new tryDrawBorderLinePrimitive2DDirect() draws rectangles, but
borders are assumed to be trapezoids. So simple comment this
out and use the original drawing method.
Change-Id: I755d5f0b3621bfc4c999ee994a375d4e5ebbcdf0
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index d287739bca94..3ad7aba70335 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -275,7 +275,7 @@ namespace drawinglayer return bTryWorked; } - +/* bool VclPixelProcessor2D::tryDrawBorderLinePrimitive2DDirect( const drawinglayer::primitive2d::BorderLinePrimitive2D& rSource) { @@ -610,7 +610,7 @@ namespace drawinglayer } return false; } - +*/ void VclPixelProcessor2D::processBasePrimitive2D(const primitive2d::BasePrimitive2D& rCandidate) { switch(rCandidate.getPrimitive2DID()) @@ -1226,10 +1226,10 @@ namespace drawinglayer sal_uInt16 nAntiAliasing = mpOutputDevice->GetAntialiasing(); mpOutputDevice->SetAntialiasing(nAntiAliasing & ~ANTIALIASING_ENABLE_B2DDRAW); - const drawinglayer::primitive2d::BorderLinePrimitive2D& rBorder = - static_cast<const drawinglayer::primitive2d::BorderLinePrimitive2D&>(rCandidate); + //const drawinglayer::primitive2d::BorderLinePrimitive2D& rBorder = + //static_cast<const drawinglayer::primitive2d::BorderLinePrimitive2D&>(rCandidate); - if (!tryDrawBorderLinePrimitive2DDirect(rBorder)) + //if (!tryDrawBorderLinePrimitive2DDirect(rBorder)) process(rCandidate.get2DDecomposition(getViewInformation2D())); mpOutputDevice->SetAntialiasing(nAntiAliasing); |