diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-14 19:07:02 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-17 11:33:13 -0500 |
commit | 7b708d3006fa281f48a6e6b16083909c3ca847f2 (patch) | |
tree | b055372519cb274483bfb1c773cd55e3f804b641 /drawinglayer | |
parent | c95871a04b9d67ef22d99f4e98dbc3d805436261 (diff) |
Always disable anti-aliasing when drawing table borders.
Change-Id: Idede8220ac36c5bd4a88ceda33a99333f7b9fe90
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index 8f9b5370ddf6..9b020f73adb2 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -843,6 +843,19 @@ namespace drawinglayer RenderSvgRadialAtomPrimitive2D(static_cast< const primitive2d::SvgRadialAtomPrimitive2D& >(rCandidate)); break; } + case PRIMITIVE2D_ID_BORDERLINEPRIMITIVE2D: + { + // process recursively, but turn off anti-aliasing. Border + // lines are always rectangular, and look horrible when + // the anti-aliasing is enabled. + sal_uInt16 nAntiAliasing = mpOutputDevice->GetAntialiasing(); + mpOutputDevice->SetAntialiasing(nAntiAliasing & ~ANTIALIASING_ENABLE_B2DDRAW); + + process(rCandidate.get2DDecomposition(getViewInformation2D())); + + mpOutputDevice->SetAntialiasing(nAntiAliasing); + break; + } default : { // process recursively |