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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 15 08:22:20 UTC 2021


 canvas/source/tools/canvastools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 86dc8e1f6273354eaf663299a028d896ad88cc9b
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jun 15 09:27:28 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jun 15 10:21:30 2021 +0200

    fix big-endian code
    
    after the transparency->alpha changes in ::Color
    
    Change-Id: Ifbac6c8f37f18e8acaef0602ef414ae39449ad3c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117209
    Tested-by: René Engelhard <rene at debian.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index 53ab7e71f0c5..02af4bb333db 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -895,7 +895,7 @@ namespace canvas::tools
             pCols[0] = rColor.GetRed();
             pCols[1] = rColor.GetGreen();
             pCols[2] = rColor.GetBlue();
-            pCols[3] = 255-rColor.GetTransparency();
+            pCols[3] = rColor.GetAlpha();
 #else
             *reinterpret_cast<sal_Int32*>(pCols) = sal_Int32(rColor);
 #endif


More information about the Libreoffice-commits mailing list