[Libreoffice-commits] core.git: Branch 'feature/calc-cell-borders' - drawinglayer/source
Kohei Yoshida
kohei.yoshida at collabora.com
Tue Jan 14 16:06:58 PST 2014
drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit 8d1e8eac41d9bb6cfb5ff68c8fffc684724776f7
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Tue Jan 14 19:07:02 2014 -0500
Always disable anti-aliasing when drawing table borders.
Change-Id: Idede8220ac36c5bd4a88ceda33a99333f7b9fe90
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
index 8f9b537..9b020f7 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
More information about the Libreoffice-commits
mailing list