summaryrefslogtreecommitdiffstats
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-15 09:27:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-15 12:06:14 +0200
commitf7a3e7c982845822fb57cbce2f74d0b70e6727c1 (patch)
tree28bc3e896efd74d1f39ea5532b6394034faa97b3 /canvas
parentucalc_copypaste: improve readability and shorten (diff)
downloadcore-f7a3e7c982845822fb57cbce2f74d0b70e6727c1.tar.gz
core-f7a3e7c982845822fb57cbce2f74d0b70e6727c1.zip
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> (cherry picked from commit 86dc8e1f6273354eaf663299a028d896ad88cc9b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117216 Tested-by: Jenkins
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/canvastools.cxx2
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