summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
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 );