From 6e57881e9908f6263069f3b3a585bc404799b9a4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Oct 2016 14:32:21 +0100 Subject: I can't see any evidence of any remaining magenta mask using image resources Change-Id: I12865d743daa3e6479edb60584d5bd01f88e818d --- vcl/source/image/Image.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'vcl/source/image/Image.cxx') diff --git a/vcl/source/image/Image.cxx b/vcl/source/image/Image.cxx index de1774efed29..2aab6a890f28 100644 --- a/vcl/source/image/Image.cxx +++ b/vcl/source/image/Image.cxx @@ -65,16 +65,6 @@ Image::Image( const ResId& rResId ) : pResMgr->Increment( ResMgr::GetObjSize( static_cast(pResMgr->GetClass()) ) ); } - if( nObjMask & RscImageFlags::MaskColor ) - { - if( !aBmpEx.IsEmpty() && aBmpEx.GetTransparentType() == TransparentType::NONE ) - { - const Color aMaskColor( ResId( static_cast(pResMgr->GetClass()), *pResMgr ) ); - aBmpEx = BitmapEx( aBmpEx.GetBitmap(), aMaskColor ); - } - - pResMgr->Increment( ResMgr::GetObjSize( static_cast(pResMgr->GetClass()) ) ); - } if( ! aBmpEx.IsEmpty() ) ImplInit( aBmpEx ); } -- cgit