diff options
author | Noel Grandin <noel@peralex.com> | 2021-02-27 18:35:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-03 08:26:47 +0100 |
commit | 63dd594d535b1272a29a3f4217212b6063a08af6 (patch) | |
tree | d6d99aaae322bdf1fe62c41e1c03e2b08c4dee9d /vcl/osx | |
parent | 4adfd75021d50e8e91c71bbe1526a1c752343059 (diff) |
drop TransparentType::Color usage
which is dead code, since we convert to TransparentType::Bitmask
in the constructor of BitmapEx
Change-Id: I047b7d25317c4be4d17a8b0db9a90ec101875c9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111683
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salinst.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 748655c86641..b090957fc922 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -932,12 +932,6 @@ CGImageRef CreateCGImage( const Image& rImage ) else xImage = pSalBmp->CreateCroppedImage( 0, 0, pSalBmp->mnWidth, pSalBmp->mnHeight ); } - else if( aBmpEx.GetTransparentType() == TransparentType::Color ) - { - Color aTransColor( aBmpEx.GetTransparentColor() ); - Color nTransColor( aTransColor.GetRed(), aTransColor.GetGreen(), aTransColor.GetBlue() ); - xImage = pSalBmp->CreateColorMask( 0, 0, pSalBmp->mnWidth, pSalBmp->mnHeight, nTransColor ); - } return xImage; } |