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 /vcl/qt5 | |
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 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Graphics_GDI.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx index 40e5a318a08f..2cbced7ddcab 100644 --- a/vcl/qt5/Qt5Graphics_GDI.cxx +++ b/vcl/qt5/Qt5Graphics_GDI.cxx @@ -142,7 +142,7 @@ bool Qt5Graphics::setClipRegion(const vcl::Region& rRegion) { QPainterPath aPath; const basegfx::B2DPolyPolygon aPolyClip(rRegion.GetAsB2DPolyPolygon()); - AddPolyPolygonToPath(aPath, aPolyClip, !getAntiAliasB2DDraw(), false); + AddPolyPolygonToPath(aPath, aPolyClip, !getAntiAlias(), false); m_aClipPath.swap(aPath); if (!m_aClipRegion.isEmpty()) { @@ -294,8 +294,7 @@ bool Qt5Graphics::drawPolyPolygon(const basegfx::B2DHomMatrix& rObjectToDevice, QPainterPath aPath; // ignore empty polygons - if (!AddPolyPolygonToPath(aPath, aPolyPolygon, !getAntiAliasB2DDraw(), - m_aLineColor != SALCOLOR_NONE)) + if (!AddPolyPolygonToPath(aPath, aPolyPolygon, !getAntiAlias(), m_aLineColor != SALCOLOR_NONE)) return true; Qt5Painter aPainter(*this, true, 255 * (1.0 - fTransparency)); @@ -384,7 +383,7 @@ bool Qt5Graphics::drawPolyLine(const basegfx::B2DHomMatrix& rObjectToDevice, for (sal_uInt32 a(0); a < aPolyPolygonLine.count(); a++) { const basegfx::B2DPolygon aPolyLine(aPolyPolygonLine.getB2DPolygon(a)); - AddPolygonToPath(aPath, aPolyLine, aPolyLine.isClosed(), !getAntiAliasB2DDraw(), true); + AddPolygonToPath(aPath, aPolyLine, aPolyLine.isClosed(), !getAntiAlias(), true); } Qt5Painter aPainter(*this, false, 255 * (1.0 - fTransparency)); |