diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index 612ea5dc605d..301eeb169158 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -341,6 +341,7 @@ void OutputDevice::DrawDeviceAlphaBitmap( const Bitmap& rBmp, const AlphaMask& r // try to blend the alpha bitmap with the alpha virtual device if (mpAlphaVDev) { +#if 0 Bitmap aAlphaBitmap( mpAlphaVDev->GetBitmap( aRelPt, aOutSz ) ); if (SalBitmap* pSalAlphaBmp2 = aAlphaBitmap.ImplGetSalBitmap().get()) { @@ -350,6 +351,7 @@ void OutputDevice::DrawDeviceAlphaBitmap( const Bitmap& rBmp, const AlphaMask& r return; } } +#endif } else { @@ -357,12 +359,14 @@ void OutputDevice::DrawDeviceAlphaBitmap( const Bitmap& rBmp, const AlphaMask& r return; } +#if 0 // we need to make sure Skia never reaches this slow code path // (but do not fail in no-op cases) assert(!SkiaHelper::isVCLSkiaEnabled() || tools::Rectangle(Point(), rBmp.GetSizePixel()) .Intersection(tools::Rectangle(rSrcPtPixel, rSrcSizePixel)).IsEmpty() || mpAlphaVDev->LogicToPixel(mpAlphaVDev->GetOutputSizePixel()).IsEmpty()); +#endif } tools::Rectangle aBmpRect(Point(), rBmp.GetSizePixel());