[Libreoffice-commits] core.git: vcl/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 27 13:02:25 UTC 2021


 vcl/source/bitmap/BitmapTools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ae95f438cf7eaa3a1a21583432a0158a445969bf
Author:     Noel Grandin <noel at peralex.com>
AuthorDate: Wed Jan 27 13:42:04 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jan 27 14:01:49 2021 +0100

    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 at collabora.co.uk>

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;
             }
         }


More information about the Libreoffice-commits mailing list