summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
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);