This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push: new 6219a30135 Restore graphic for discrete shadow, use old style shadow instead and remove shadow there. Definitely mor code cleanup needed 6219a30135 is described below commit 6219a30135fbf334077b38c1de571242527d7706 Author: mseidel <msei...@apache.org> AuthorDate: Fri May 27 11:05:57 2022 +0200 Restore graphic for discrete shadow, use old style shadow instead and remove shadow there. Definitely mor code cleanup needed (cherry picked from commit 484907483226980df37ea115f617d801998a694e) --- main/default_images/svx/res/pageshadow35x35.png | Bin 143 -> 708 bytes .../svx/source/sdr/contact/viewcontactofsdrpage.cxx | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main/default_images/svx/res/pageshadow35x35.png b/main/default_images/svx/res/pageshadow35x35.png index 8fe511108b..1f0126e340 100644 Binary files a/main/default_images/svx/res/pageshadow35x35.png and b/main/default_images/svx/res/pageshadow35x35.png differ diff --git a/main/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/main/svx/source/sdr/contact/viewcontactofsdrpage.cxx index 44b7b440d1..7ac18d0359 100644 --- a/main/svx/source/sdr/contact/viewcontactofsdrpage.cxx +++ b/main/svx/source/sdr/contact/viewcontactofsdrpage.cxx @@ -131,7 +131,7 @@ namespace sdr drawinglayer::primitive2d::Primitive2DSequence ViewContactOfPageShadow::createViewIndependentPrimitive2DSequence() const { - static bool bUseOldPageShadow(false); + static bool bUseOldPageShadow(true); const SdrPage& rPage = getPage(); basegfx::B2DHomMatrix aPageMatrix; aPageMatrix.set(0, 0, (double)rPage.GetWdt()); @@ -140,16 +140,16 @@ namespace sdr if(bUseOldPageShadow) { // create page shadow polygon - const double fPageBorderFactor(1.0 / 256.0); +// const double fPageBorderFactor(1.0 / 256.0); basegfx::B2DPolygon aPageShadowPolygon; - aPageShadowPolygon.append(basegfx::B2DPoint(1.0, fPageBorderFactor)); - aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, fPageBorderFactor)); - aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, 1.0 + fPageBorderFactor)); - aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0 + fPageBorderFactor)); - aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0)); - aPageShadowPolygon.append(basegfx::B2DPoint(1.0, 1.0)); - aPageShadowPolygon.setClosed(true); - aPageShadowPolygon.transform(aPageMatrix); +// aPageShadowPolygon.append(basegfx::B2DPoint(1.0, fPageBorderFactor)); +// aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, fPageBorderFactor)); +// aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, 1.0 + fPageBorderFactor)); +// aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0 + fPageBorderFactor)); +// aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0)); +// aPageShadowPolygon.append(basegfx::B2DPoint(1.0, 1.0)); +// aPageShadowPolygon.setClosed(true); +// aPageShadowPolygon.transform(aPageMatrix); // We have only the page information, not the view information. Use the // svtools::FONTCOLOR color for initialization