diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-21 11:51:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-21 14:31:49 +0100 |
commit | 08143bf192a885e1adbde061bb7d68bc5c559e03 (patch) | |
tree | 17bf971bfd03b417bb4a27ab76769d7696543d17 /drawinglayer/source | |
parent | d22d862ce6abd28a5859571b465459489da430d8 (diff) |
no longer need this svtools/drawinglayer hack
after
commit 664ecbd8916478cdc28a9c793fbdb9359b3cac64
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Wed Nov 20 16:08:14 2024 +0200
remove OutDevSupportType::TransparentRect
Change-Id: I57804ec9e9967c7082a1f657165d967d75b1dedf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176910
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/geometry/viewinformation2d.cxx | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/drawinglayer/source/geometry/viewinformation2d.cxx b/drawinglayer/source/geometry/viewinformation2d.cxx index 296e34a0def2..6550831214db 100644 --- a/drawinglayer/source/geometry/viewinformation2d.cxx +++ b/drawinglayer/source/geometry/viewinformation2d.cxx @@ -48,12 +48,6 @@ constexpr OUStringLiteral g_PropertyName_UseAntiAliasing = u"UseAntiAliasing"; constexpr OUStringLiteral g_PropertyName_PixelSnapHairline = u"PixelSnapHairline"; } -namespace -{ -bool bForwardsAreInitialized(false); -bool bForwardPixelSnapHairline(true); -} - class ImpViewInformation2D { private: @@ -123,8 +117,13 @@ public: , mbEditViewActive(false) , mbReducedDisplayQuality(false) , mbUseAntiAliasing(ViewInformation2D::getGlobalAntiAliasing()) - , mbPixelSnapHairline(mbUseAntiAliasing && bForwardPixelSnapHairline) { + if (comphelper::IsFuzzing()) + mbPixelSnapHairline = false; + else + mbPixelSnapHairline + = mbUseAntiAliasing + && officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get(); } const basegfx::B2DHomMatrix& getObjectTransformation() const { return maObjectTransformation; } @@ -250,18 +249,11 @@ ViewInformation2D::ImplType& theGlobalDefault() ViewInformation2D::ViewInformation2D() : mpViewInformation2D(theGlobalDefault()) { - if (!bForwardsAreInitialized) - { - bForwardsAreInitialized = true; - if (!comphelper::IsFuzzing()) - { - bForwardPixelSnapHairline - = officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get(); - } - } - setUseAntiAliasing(ViewInformation2D::getGlobalAntiAliasing()); - setPixelSnapHairline(bForwardPixelSnapHairline); + if (!comphelper::IsFuzzing()) + setPixelSnapHairline( + getUseAntiAliasing() + && officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get()); } ViewInformation2D::ViewInformation2D(const ViewInformation2D&) = default; @@ -427,11 +419,6 @@ void ViewInformation2D::setGlobalAntiAliasing(bool bAntiAliasing, bool bTemporar } bool ViewInformation2D::getGlobalAntiAliasing() { return globalAntiAliasing(); } -void ViewInformation2D::forwardPixelSnapHairline(bool bPixelSnapHairline) -{ - bForwardPixelSnapHairline = bPixelSnapHairline; -} - ViewInformation2D createViewInformation2D(const css::uno::Sequence<css::beans::PropertyValue>& rViewParameters) { |