diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-11 08:54:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-12 17:38:53 +0100 |
commit | d765ec2295d12ccde1fb25aa92c5d821de748add (patch) | |
tree | c2f806389478df23b78319c6043971f92995851c /svx/source/sdr/overlay | |
parent | a1d6701105456248f6ff39766a6699f26a8f3d60 (diff) |
transparency->alpha in tools::Color
this just changes the Get/Set methods, the constructor and internal
representation of Color is not changed.
Change-Id: Idb6e07cc08bbaa5bd55b6bd4b585e648aef507b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109074
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr/overlay')
-rw-r--r-- | svx/source/sdr/overlay/overlaypolypolygon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/overlay/overlaypolypolygon.cxx b/svx/source/sdr/overlay/overlaypolypolygon.cxx index 8abde414faa0..5be533074a50 100644 --- a/svx/source/sdr/overlay/overlaypolypolygon.cxx +++ b/svx/source/sdr/overlay/overlaypolypolygon.cxx @@ -53,13 +53,13 @@ namespace sdr::overlay auto aLine(new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D(maLinePolyPolygon, aLineAttribute)); aReturnContainer = drawinglayer::primitive2d::Primitive2DContainer { aLine }; - if (maFillColor.GetTransparency() != 255) + if (maFillColor.GetAlpha() != 0) { auto aFill(new drawinglayer::primitive2d::PolyPolygonColorPrimitive2D(maLinePolyPolygon, maFillColor.getBColor())); aReturnContainer.push_back(aFill); } - sal_uInt8 nTransparency = getBaseColor().GetTransparency(); + sal_uInt8 nTransparency = 255 - getBaseColor().GetAlpha(); if (nTransparency > 0) { const drawinglayer::primitive2d::Primitive2DReference aTransparencePrimitive( |