summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-25 12:50:46 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-09-28 13:35:42 +0200
commit76597aa62a09997beb794669008ce880327bda39 (patch)
treee2aee9db504a9ed472c31fae53724d23ca225f1d /vcl/source/window
parent15a5a56326761b79c9ea56b99a05faee457f1a1b (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/source/window')
-rw-r--r--vcl/source/window/printdlg.cxx2
-rw-r--r--vcl/source/window/splitwin.cxx2
-rw-r--r--vcl/source/window/toolbox.cxx2
-rw-r--r--vcl/source/window/window.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 042e58c3a06a..e9d35f96dd72 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -417,7 +417,7 @@ void PrintDialog::PrintPreviewWindow::preparePreviewBitmap()
aMtf.WindStart();
const AntialiasingFlags nOriginalAA(pPrerenderVDev->GetAntialiasing());
- pPrerenderVDev->SetAntialiasing(nOriginalAA | AntialiasingFlags::EnableB2dDraw);
+ pPrerenderVDev->SetAntialiasing(nOriginalAA | AntialiasingFlags::Enable);
aMtf.Play( pPrerenderVDev.get(), Point( 0, 0 ), aLogicSize );
pPrerenderVDev->SetAntialiasing(nOriginalAA);
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 3d36a9a26ae7..e4b1f53d036f 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -1487,7 +1487,7 @@ void SplitWindow::ImplDrawGrip(vcl::RenderContext& rRenderContext, const tools::
}
AntialiasingFlags nAA = rRenderContext.GetAntialiasing();
- rRenderContext.SetAntialiasing(nAA | AntialiasingFlags::PixelSnapHairline | AntialiasingFlags::EnableB2dDraw);
+ rRenderContext.SetAntialiasing(nAA | AntialiasingFlags::PixelSnapHairline | AntialiasingFlags::Enable);
long nWidth = rRect.getWidth();
long nWidthHalf = nWidth / 2;
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 4728d594038e..91bdda0fcd5e 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2414,7 +2414,7 @@ static void ImplDrawDropdownArrow(vcl::RenderContext& rRenderContext, const tool
aPoly.SetPoint(Point(x, y), 3);
auto aaflags = rRenderContext.GetAntialiasing();
- rRenderContext.SetAntialiasing(AntialiasingFlags::EnableB2dDraw);
+ rRenderContext.SetAntialiasing(AntialiasingFlags::Enable);
rRenderContext.DrawPolygon( aPoly );
rRenderContext.SetAntialiasing(aaflags);
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 444ec4286571..1ba367a6987f 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -873,7 +873,7 @@ bool Window::AcquireGraphics() const
pSVData->maGDIData.mpLastWinGraphics = const_cast<vcl::Window*>(this);
mpGraphics->SetXORMode( (RasterOp::Invert == meRasterOp) || (RasterOp::Xor == meRasterOp), RasterOp::Invert == meRasterOp );
- mpGraphics->setAntiAliasB2DDraw(bool(mnAntialiasing & AntialiasingFlags::EnableB2dDraw));
+ mpGraphics->setAntiAlias(bool(mnAntialiasing & AntialiasingFlags::Enable));
}
return mpGraphics != nullptr;