canvas/source/tools/canvastools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 86dc8e1f6273354eaf663299a028d896ad88cc9b Author: Noel Grandin <[email protected]> AuthorDate: Tue Jun 15 09:27:28 2021 +0200 Commit: Noel Grandin <[email protected]> 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 <[email protected]> Reviewed-by: Noel Grandin <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
