summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-11-20 11:04:24 +0100
committerJan Holesovsky <kendy@collabora.com>2014-11-20 18:08:58 +0100
commit3a6f1c6c65bc78f1d13a924b028f7ed38fc717c4 (patch)
tree3e042b4d4440bd4f8d4e9c113fc6a740e054e27d
parentf622648b23ddab9387dd72116d2105fe2e59ff76 (diff)
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.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index fe2b835c72c0..93c37c4a1091 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(!mpAlphaVDev && !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 );