summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-27 15:26:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-29 11:57:20 +0200
commit589134377d5d8e496454e4df08d1065abffdbbf3 (patch)
treef49d571a907d50709851e5b65a6c7b479fde7b44 /drawinglayer
parentc3b1033db7f71011b0d0399dd66f8fe5bd441410 (diff)
loplugin:constantparam
Change-Id: I54f0e2864cb4ef00fea8f9e4369a1f76721e7503 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97369 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx10
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx1
2 files changed, 6 insertions, 5 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 1de36cd9f47d..4c4a9fe3a329 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -2320,10 +2320,12 @@ void VclMetafileProcessor2D::processStructureTagPrimitive2D(
}
}
-VclPtr<VirtualDevice> VclMetafileProcessor2D::CreateBufferDevice(
- const basegfx::B2DRange& rCandidateRange, const double fMaxQuadratPixels,
- geometry::ViewInformation2D& rViewInfo, tools::Rectangle& rRectLogic, Size& rSizePixel)
+VclPtr<VirtualDevice>
+VclMetafileProcessor2D::CreateBufferDevice(const basegfx::B2DRange& rCandidateRange,
+ geometry::ViewInformation2D& rViewInfo,
+ tools::Rectangle& rRectLogic, Size& rSizePixel)
{
+ constexpr double fMaxQuadratPixels = 500000;
basegfx::B2DRange aViewRange(rCandidateRange);
aViewRange.transform(maCurrentTransformation);
rRectLogic = tools::Rectangle(static_cast<long>(std::floor(aViewRange.getMinX())),
@@ -2394,7 +2396,7 @@ void VclMetafileProcessor2D::processPrimitive2DOnPixelProcessor(
geometry::ViewInformation2D aViewInfo;
tools::Rectangle aRectLogic;
Size aSizePixel;
- auto pBufferDevice(CreateBufferDevice(aViewRange, 500000, aViewInfo, aRectLogic, aSizePixel));
+ auto pBufferDevice(CreateBufferDevice(aViewRange, aViewInfo, aRectLogic, aSizePixel));
if (pBufferDevice)
{
VclPixelProcessor2D aBufferProcessor(aViewInfo, *pBufferDevice, maBColorModifierStack);
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
index 5febad18c3d7..67a79ca307cc 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.hxx
@@ -146,7 +146,6 @@ private:
const primitive2d::StructureTagPrimitive2D& rStructureTagCandidate);
void processPrimitive2DOnPixelProcessor(const primitive2d::BasePrimitive2D& rCandidate);
VclPtr<VirtualDevice> CreateBufferDevice(const basegfx::B2DRange& rCandidateRange,
- const double fMaxQuadratPixels,
geometry::ViewInformation2D& rViewInfo,
tools::Rectangle& rRectLogic, Size& rSizePixel);