loplugin:constantparam in drawinglayer
Change-Id: I93b14a4ced909fa87bc3ad69d6fe9741a218018f
This commit is contained in:
parent
168efab3c4
commit
1900790736
@ -248,8 +248,7 @@ namespace drawinglayer
|
||||
|
||||
impBufferDevice::impBufferDevice(
|
||||
OutputDevice& rOutDev,
|
||||
const basegfx::B2DRange& rRange,
|
||||
bool bAddOffsetToMapping)
|
||||
const basegfx::B2DRange& rRange)
|
||||
: mrOutDev(rOutDev),
|
||||
mpContent(nullptr),
|
||||
mpMask(nullptr),
|
||||
@ -287,11 +286,8 @@ namespace drawinglayer
|
||||
|
||||
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);
|
||||
|
||||
|
@ -43,8 +43,7 @@ namespace drawinglayer
|
||||
public:
|
||||
impBufferDevice(
|
||||
OutputDevice& rOutDev,
|
||||
const basegfx::B2DRange& rRange,
|
||||
bool bAddOffsetToMapping);
|
||||
const basegfx::B2DRange& rRange);
|
||||
~impBufferDevice();
|
||||
|
||||
void paint(double fTrans = 0.0);
|
||||
|
@ -856,7 +856,7 @@ namespace drawinglayer
|
||||
{
|
||||
aMask.transform(maCurrentTransformation);
|
||||
const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask));
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true);
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
|
||||
|
||||
if(aBufferDevice.isVisible())
|
||||
{
|
||||
@ -933,7 +933,7 @@ namespace drawinglayer
|
||||
// transparence is in visible range
|
||||
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
|
||||
aRange.transform(maCurrentTransformation);
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true);
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
|
||||
|
||||
if(aBufferDevice.isVisible())
|
||||
{
|
||||
@ -962,7 +962,7 @@ namespace drawinglayer
|
||||
{
|
||||
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
|
||||
aRange.transform(maCurrentTransformation);
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true);
|
||||
impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
|
||||
|
||||
if(aBufferDevice.isVisible())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user