Kaydet (Commit) 19007907 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constantparam in drawinglayer

Change-Id: I93b14a4ced909fa87bc3ad69d6fe9741a218018f
üst 168efab3
...@@ -248,8 +248,7 @@ namespace drawinglayer ...@@ -248,8 +248,7 @@ namespace drawinglayer
impBufferDevice::impBufferDevice( impBufferDevice::impBufferDevice(
OutputDevice& rOutDev, OutputDevice& rOutDev,
const basegfx::B2DRange& rRange, const basegfx::B2DRange& rRange)
bool bAddOffsetToMapping)
: mrOutDev(rOutDev), : mrOutDev(rOutDev),
mpContent(nullptr), mpContent(nullptr),
mpMask(nullptr), mpMask(nullptr),
...@@ -287,11 +286,8 @@ namespace drawinglayer ...@@ -287,11 +286,8 @@ namespace drawinglayer
MapMode aNewMapMode(mrOutDev.GetMapMode()); MapMode aNewMapMode(mrOutDev.GetMapMode());
if(bAddOffsetToMapping) const Point aLogicTopLeft(mrOutDev.PixelToLogic(maDestPixel.TopLeft()));
{ aNewMapMode.SetOrigin(Point(-aLogicTopLeft.X(), -aLogicTopLeft.Y()));
const Point aLogicTopLeft(mrOutDev.PixelToLogic(maDestPixel.TopLeft()));
aNewMapMode.SetOrigin(Point(-aLogicTopLeft.X(), -aLogicTopLeft.Y()));
}
mpContent->SetMapMode(aNewMapMode); mpContent->SetMapMode(aNewMapMode);
......
...@@ -43,8 +43,7 @@ namespace drawinglayer ...@@ -43,8 +43,7 @@ namespace drawinglayer
public: public:
impBufferDevice( impBufferDevice(
OutputDevice& rOutDev, OutputDevice& rOutDev,
const basegfx::B2DRange& rRange, const basegfx::B2DRange& rRange);
bool bAddOffsetToMapping);
~impBufferDevice(); ~impBufferDevice();
void paint(double fTrans = 0.0); void paint(double fTrans = 0.0);
......
...@@ -856,7 +856,7 @@ namespace drawinglayer ...@@ -856,7 +856,7 @@ namespace drawinglayer
{ {
aMask.transform(maCurrentTransformation); aMask.transform(maCurrentTransformation);
const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask)); const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask));
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {
...@@ -933,7 +933,7 @@ namespace drawinglayer ...@@ -933,7 +933,7 @@ namespace drawinglayer
// transparence is in visible range // transparence is in visible range
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
aRange.transform(maCurrentTransformation); aRange.transform(maCurrentTransformation);
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {
...@@ -962,7 +962,7 @@ namespace drawinglayer ...@@ -962,7 +962,7 @@ namespace drawinglayer
{ {
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
aRange.transform(maCurrentTransformation); aRange.transform(maCurrentTransformation);
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment