diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-15 09:27:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-15 10:21:30 +0200 |
commit | 86dc8e1f6273354eaf663299a028d896ad88cc9b (patch) | |
tree | 5ce10fc86e926536ea955a2fb0daee50a3f1d264 /canvas | |
parent | 2cfccfba09faa5c3bb973136ffe99d534d09c881 (diff) |
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@debian.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |