diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-15 12:11:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-15 21:05:34 +0200 |
commit | cb09533c4a007e7cfde69046bcaeb47117d30a86 (patch) | |
tree | 2977ff2a7d5efc5408b9e30e32a6684b7e561a3b /vcl/source/gdi | |
parent | d0c7afcce3016759a1371be361ce8b39dfc7fc17 (diff) |
tdf#141269 Incorrect transparency after roundtrip
Revert "convert internal bitmap formats transparency->alpha"
This reverts commit c181e510c5f5e74f1f6824b64637849aace9ae63.
and later fix up of
Revert "tdf#141504 qt5: ugly images"
This reverts commit e7424ff25a724ea5bb54b2282d5c3cbf74c92053.
a lot of places are still working int transparency values
and not opacity
Change-Id: I31342cdb76629acbaebfcdfa385407d3291fe06f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114150
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 7ef6c73ce47b..2856ecaed18e 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -1751,7 +1751,7 @@ Color GDIMetaFile::ImplColConvertFnc( const Color& rColor, const void* pColParam if( MtfConversion::N1BitThreshold == static_cast<const ImplColConvertParam*>(pColParam)->eConversion ) cLum = ( cLum < 128 ) ? 0 : 255; - return Color( ColorAlpha, rColor.GetAlpha(), cLum, cLum, cLum ); + return Color( ColorTransparency, 255 - rColor.GetAlpha(), cLum, cLum, cLum ); } BitmapEx GDIMetaFile::ImplBmpConvertFnc( const BitmapEx& rBmpEx, const void* pBmpParam ) |