diff options
-rw-r--r-- | vcl/source/outdev/bitmap.cxx | 4 | ||||
-rw-r--r-- | vcl/source/outdev/transparent.cxx | 11 |
2 files changed, 2 insertions, 13 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index ad02fccff63d..9f5ef1f51f20 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -660,10 +660,6 @@ void OutputDevice::DrawDeviceAlphaBitmap( const Bitmap& rBmp, const AlphaMask& r if (aDstRect.Intersection(tools::Rectangle(aOutPt, aOutSz)).IsEmpty()) return; - static const char* pDisableNative = getenv( "SAL_DISABLE_NATIVE_ALPHA"); - bool bTryDirectPaint = !pDisableNative; - - if (bTryDirectPaint) { Point aRelPt = aOutPt + Point(mnOutOffX, mnOutOffY); SalTwoRect aTR( diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index 5944c9777299..358b8bba6857 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -330,11 +330,7 @@ bool OutputDevice::DrawTransparentNatively ( const tools::PolyPolygon& rPolyPoly bool bDrawn = false; - // debug helper: - static const char* pDisableNative = getenv( "SAL_DISABLE_NATIVE_ALPHA"); - - if( !pDisableNative && - mpGraphics->supportsOperation( OutDevSupportType::B2DDraw ) + if (mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) #if defined UNX && ! defined MACOSX && ! defined IOS && GetBitCount() > 8 #endif @@ -436,14 +432,11 @@ void OutputDevice::EmulateDrawTransparent ( const tools::PolyPolygon& rPolyPoly, { bool bDrawn = false; - // debug helper: - static const char* pDisableNative = getenv( "SAL_DISABLE_NATIVE_ALPHA" ); - // #i66849# Added fast path for exactly rectangular // polygons // #i83087# Naturally, system alpha blending cannot // work with separate alpha VDev - if( !mpAlphaVDev && !pDisableNative && aPolyPoly.IsRect() ) + if( !mpAlphaVDev && aPolyPoly.IsRect() ) { // setup Graphics only here (other cases delegate // to basic OutDev methods) |