diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-24 12:33:15 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:11 +0100 |
commit | 18ee3c5fc1656ffcb4becca6e7768b63b367e775 (patch) | |
tree | 119f1415babcaa3d6f234304d5f6797537e61316 | |
parent | 77eb89f043712e30fbcccea38f051efa02c95d14 (diff) |
fix alpha conversion in SalBitmap::convertDataBitCount()
VCL sometimes uses inversed alpha, but this function should always
just convert the format and not the contents.
Change-Id: I85943cb8d9db6c09c57ccf8fa45e8a591db10e6d
-rw-r--r-- | vcl/source/bitmap/salbmp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/salbmp.cxx b/vcl/source/bitmap/salbmp.cxx index 59ff8ef2e5ec..28a46ccc262b 100644 --- a/vcl/source/bitmap/salbmp.cxx +++ b/vcl/source/bitmap/salbmp.cxx @@ -166,7 +166,7 @@ std::unique_ptr< sal_uInt8[] > SalBitmap::convertDataBitCount( const sal_uInt8* while( nX-- ) { const BitmapColor& c = pSrcFormat->ReadPixel(); - *pDstData++ = 0xff - c.GetBlue(); + *pDstData++ = c.GetBlue(); } break; case BitConvert::BGR : |