diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-03-23 20:26:09 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-03-25 12:26:16 +0000 |
commit | 514d33fa3a409681be93bed3fb33f940a5549d88 (patch) | |
tree | 8ffd00d353a838a4ba745d330776691170a59d66 /vcl/source/gdi/outdev2.cxx | |
parent | 03568b2e2405fc44435b95720f3680ab1daea836 (diff) |
fdo#74702 DrawTransformedBitmapEx simplified
Removed bPrinter check from DrawTransformedBitmapEx, also removes
meOutDevType.
Change-Id: I5fd09efc4f3467702ab9671dc45da1a9c0e3f927
Reviewed-on: https://gerrit.libreoffice.org/8723
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/source/gdi/outdev2.cxx')
-rw-r--r-- | vcl/source/gdi/outdev2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx index 29f170231d7e..4d2c764c1448 100644 --- a/vcl/source/gdi/outdev2.cxx +++ b/vcl/source/gdi/outdev2.cxx @@ -798,7 +798,6 @@ void OutputDevice::DrawTransformedBitmapEx( const bool bInvert(ROP_INVERT == meRasterOp); const bool bBitmapChangedColor(mnDrawMode & (DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP | DRAWMODE_GRAYBITMAP | DRAWMODE_GHOSTEDBITMAP)); const bool bMetafile(mpMetaFile); - const bool bPrinter(OUTDEV_PRINTER == meOutDevType); bool bDone(false); const basegfx::B2DHomMatrix aFullTransform(GetViewTransformation() * rTransformation); const bool bTryDirectPaint(!bInvert && !bBitmapChangedColor && !bMetafile ); @@ -835,7 +834,7 @@ void OutputDevice::DrawTransformedBitmapEx( const double fOrigAreaScaled(bSheared || bRotated ? fOrigArea * 1.44 : fOrigArea); double fMaximumArea(std::min(4500000.0, std::max(1000000.0, fOrigAreaScaled))); - if(!bMetafile && !bPrinter) + if(!bMetafile) { if ( !TransformReduceBitmapExTargetRange( aFullTransform, aVisibleRange, fMaximumArea ) ) return; |