summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-13 08:47:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-13 14:36:27 +0100
commit502f6372aeb6689f3d61cea7a77b2e8db160d767 (patch)
treeeabad6b878cd69d0f61af04259935d7efcd23830 /slideshow
parentf3d39d9a8502ae678a4eedfb73d1efc49104d7dc (diff)
transparency->alpha in GraphicAttr
Change-Id: I1fe9311871724ff8b7b8960f5dba6e890198565c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109211 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/shapeimporter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/shapes/shapeimporter.cxx b/slideshow/source/engine/shapes/shapeimporter.cxx
index 877f4217348a..d896caa559ae 100644
--- a/slideshow/source/engine/shapes/shapeimporter.cxx
+++ b/slideshow/source/engine/shapes/shapeimporter.cxx
@@ -295,7 +295,7 @@ ShapeSharedPtr ShapeImporter::createShape(
aGraphAttrs.SetChannelG( nGreen );
aGraphAttrs.SetChannelB( nBlue );
aGraphAttrs.SetGamma( nGamma );
- aGraphAttrs.SetTransparency( static_cast<sal_uInt8>(nTransparency) );
+ aGraphAttrs.SetAlpha( 255 - static_cast<sal_uInt8>(nTransparency) );
aGraphAttrs.SetRotation( Degree10(static_cast<sal_Int16>(nRotation*10)) );
text::GraphicCrop aGraphCrop;