diff options
Diffstat (limited to 'vcl/source/gdi/print2.cxx')
-rw-r--r-- | vcl/source/gdi/print2.cxx | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index f7e4d8875341..3526d9017cb5 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -186,37 +186,7 @@ void ImplConvertTransparentAction( GDIMetaFile& o_rMtf, } Bitmap aBmp(aBmpEx.GetBitmap()); - if (!aBmpEx.IsAlpha()) - { - // blend with mask - Bitmap::ScopedReadAccess pRA(aBmp); - - if (!pRA) - return; // what else should I do? - - Color aActualColor(aBgColor); - - if (pRA->HasPalette()) - aActualColor = pRA->GetBestPaletteColor(aBgColor); - - pRA.reset(); - - // did we get true white? - if (aActualColor.GetColorError(aBgColor)) - { - // no, create truecolor bitmap, then - aBmp.Convert(BmpConversion::N24Bit); - - // fill masked out areas white - aBmp.Replace(aBmpEx.GetMask(), aBgColor); - } - else - { - // fill masked out areas white - aBmp.Replace(aBmpEx.GetMask(), aActualColor); - } - } - else + if (aBmpEx.IsAlpha()) { // blend with alpha channel aBmp.Convert(BmpConversion::N24Bit); |