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 /include | |
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 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 2 | ||||
-rw-r--r-- | include/vcl/outdev/ScopedStates.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 14b03507dfe3..e1cd36730d52 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -230,7 +230,7 @@ enum class AntialiasingFlags { NONE = 0x0000, DisableText = 0x0001, - EnableB2dDraw = 0x0002, + Enable = 0x0002, PixelSnapHairline = 0x0004, }; namespace o3tl diff --git a/include/vcl/outdev/ScopedStates.hxx b/include/vcl/outdev/ScopedStates.hxx index b64167587885..7542cfeed548 100644 --- a/include/vcl/outdev/ScopedStates.hxx +++ b/include/vcl/outdev/ScopedStates.hxx @@ -27,9 +27,9 @@ public: , m_nPreviousAAState(m_rOutputDevice.GetAntialiasing()) { if (bAAState) - rOutputDevice.SetAntialiasing(m_nPreviousAAState | AntialiasingFlags::EnableB2dDraw); + rOutputDevice.SetAntialiasing(m_nPreviousAAState | AntialiasingFlags::Enable); else - rOutputDevice.SetAntialiasing(m_nPreviousAAState & ~AntialiasingFlags::EnableB2dDraw); + rOutputDevice.SetAntialiasing(m_nPreviousAAState & ~AntialiasingFlags::Enable); } ~ScopedAntialiasing() { m_rOutputDevice.SetAntialiasing(m_nPreviousAAState); } |