summaryrefslogtreecommitdiff
path: root/canvas
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 /canvas
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 'canvas')
-rw-r--r--canvas/source/vcl/canvashelper.cxx4
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx
index c3d31557c09d..501741301d8e 100644
--- a/canvas/source/vcl/canvashelper.cxx
+++ b/canvas/source/vcl/canvashelper.cxx
@@ -752,9 +752,9 @@ namespace vclcanvas
// transOrig*transModulate (which would be
// equivalent to the origAlpha*modulateAlpha the
// DX canvas performs)
- aGrfAttr.SetTransparency(
+ aGrfAttr.SetAlpha(
static_cast< sal_uInt8 >(
- ::basegfx::fround( 255.0*( 1.0 - nAlphaModulation ) ) ) );
+ ::basegfx::fround( 255.0 * nAlphaModulation ) ) );
}
if( ::basegfx::fTools::equalZero( nShearX ) )
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 857710acb102..c0ef516d4c0a 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -941,9 +941,9 @@ namespace vclcanvas
// transOrig*transModulate (which would be
// equivalent to the origAlpha*modulateAlpha
// the DX canvas performs)
- aGrfAttr.SetTransparency(
+ aGrfAttr.SetAlpha(
static_cast< sal_uInt8 >(
- ::basegfx::fround( 255.0*( 1.0 - textures[0].Alpha ) ) ) );
+ ::basegfx::fround( 255.0 * textures[0].Alpha ) ) );
}
rOutDev.IntersectClipRegion( aPolygonDeviceRect );