From ae95f438cf7eaa3a1a21583432a0158a445969bf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Jan 2021 13:42:04 +0200 Subject: tdf#139941 wrong transparency in 3D object regression from commit 508c2e4a2d2b26d6b1842ff98e9aaa4d3adddf80 transparency->alpha in vcl::RawBitmap Change-Id: I45a1759fb9a78bc0fc5caa4a5b5362eaddc6f743 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110010 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/bitmap/BitmapTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index e4b03cb9de76..61c4b3e1ecee 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -221,7 +221,7 @@ BitmapEx CreateFromData( RawBitmap&& rawBitmap ) Scanline pMaskScanLine = xMaskAcc->GetScanline(y); for (tools::Long x = 0; x < nWidth; ++x) { - xMaskAcc->SetPixelOnData(pMaskScanLine, x, BitmapColor(*p)); + xMaskAcc->SetPixelOnData(pMaskScanLine, x, BitmapColor(255 - *p)); p += 4; } } -- cgit