diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-11-20 11:04:24 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-11-20 11:13:22 +0100 |
commit | 5ec1c4f096e65b67e7d0a322fd936b62cf7a82cc (patch) | |
tree | 1a92703a57029fdad6bfe6199983b1667465f6f8 | |
parent | vcl: Kill IsMapMode(), it means the same as IsMapModeEnabled(). (diff) | |
download | core-5ec1c4f096e65b67e7d0a322fd936b62cf7a82cc.tar.gz core-5ec1c4f096e65b67e7d0a322fd936b62cf7a82cc.zip |
vcl: If there it a MapMode, it is applied.
Based on that, I believe this condition can go too.
Change-Id: I88d8211678ca148bdf85729f57893e1476a52fc9
-rw-r--r-- | vcl/source/outdev/bitmap.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index f6f387f2a460..e9120869abfa 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -522,17 +522,6 @@ void OutputDevice::DrawDeviceBitmap( const Point& rDestPt, const Size& rDestSize SalBitmap* pSalAlphaBmp = pMaskBmp->ImplGetSalBitmap(); bool bTryDirectPaint(pSalSrcBmp && pSalAlphaBmp); - if (bTryDirectPaint) - { - // only paint direct when no MapMode, else the - // more expensive conversions may be done for short-time Bitmap/BitmapEx - // used for buffering only - if (IsMapModeEnabled()) - { - bTryDirectPaint = false; - } - } - if (bTryDirectPaint && mpGraphics->DrawAlphaBitmap(aPosAry, *pSalSrcBmp, *pSalAlphaBmp, this)) { // tried to paint as alpha directly. If tis worked, we are done (except @@ -661,17 +650,6 @@ void OutputDevice::DrawDeviceAlphaBitmap( const Bitmap& rBmp, const AlphaMask& r // separate alpha VDev bool bTryDirectPaint(!pDisableNative && !bHMirr && !bVMirr); - if (bTryDirectPaint) - { - // only paint direct when no MapMode, else the - // more expensive conversions may be done for short-time Bitmap/BitmapEx - // used for buffering only - if (IsMapModeEnabled()) - { - bTryDirectPaint = false; - } - } - if(bTryDirectPaint) { Point aRelPt = aOutPt + Point( mnOutOffX, mnOutOffY ); |