diff options
author | Noel Grandin <noel@peralex.com> | 2021-01-27 13:42:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-27 14:01:49 +0100 |
commit | ae95f438cf7eaa3a1a21583432a0158a445969bf (patch) | |
tree | 2e4f93c4c0644ae2c2a0c046d5cf6dc2e4d5a8d1 /vcl/source | |
parent | d759009fd85c4e17dc7d482a84e22510e7949f16 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/bitmap/BitmapTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |