diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-09-25 12:50:46 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-28 13:35:42 +0200 |
commit | 76597aa62a09997beb794669008ce880327bda39 (patch) | |
tree | e2aee9db504a9ed472c31fae53724d23ca225f1d /svtools | |
parent | 15a5a56326761b79c9ea56b99a05faee457f1a1b (diff) |
rename for disentangling AA and B2D use in VCL drawing
This renames AntialiasingFlags::EnableB2dDraw to just Enable,
and the AntiAliasB2DDraw names to just AntiAlias. This is
in preparation for a second commit that will actually separate
the AA and B2D functionality of these flags.
Change-Id: I9cc215c5752dfabce41e00e19d9074fc8dc3d4de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103416
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/filter/DocumentToGraphicRenderer.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index b9d529fcf535..9149cb4246c3 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -199,7 +199,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap ) static void lclDrawPolygon( OutputDevice& rDev, const basegfx::B2DPolygon& rPolygon, long nWidth, SvxBorderLineStyle nDashing ) { AntialiasingFlags nOldAA = rDev.GetAntialiasing(); - rDev.SetAntialiasing( nOldAA & ~AntialiasingFlags::EnableB2dDraw ); + rDev.SetAntialiasing( nOldAA & ~AntialiasingFlags::Enable ); long nPix = rDev.PixelToLogic(Size(1, 1)).Width(); basegfx::B2DPolyPolygon aPolygons = svtools::ApplyLineDashing(rPolygon, nDashing, nPix); diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx index 415ab353e73f..29ec30b94808 100644 --- a/svtools/source/filter/DocumentToGraphicRenderer.cxx +++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx @@ -235,7 +235,7 @@ Graphic DocumentToGraphicRenderer::renderToGraphic( pOutputDev->SetExtOutDevData(&aPDFExtOutDevData); } - pOutputDev->SetAntialiasing(pOutputDev->GetAntialiasing() | AntialiasingFlags::EnableB2dDraw); + pOutputDev->SetAntialiasing(pOutputDev->GetAntialiasing() | AntialiasingFlags::Enable); MapMode mm = pOutputDev->GetMapMode(); mm.SetScaleX( Fraction(fScaleX) ); mm.SetScaleY( Fraction(fScaleY) ); |