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 /cppcanvas | |
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 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index bf93f6bf2e3e..864450380f4e 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -92,7 +92,7 @@ namespace // force alpha part of color to // opaque. transparent painting is done // explicitly via MetaActionType::Transparent - aColor.SetTransparency(0); + aColor.SetAlpha(255); //aColor.SetTransparency(128); rColorSequence = vcl::unotools::colorToDoubleSequence( @@ -899,7 +899,7 @@ namespace cppcanvas::internal || (aTextColor.GetLuminance() < 8); aShadowColor = bIsDark ? COL_LIGHTGRAY : COL_BLACK; - aShadowColor.SetTransparency( aTextColor.GetTransparency() ); + aShadowColor.SetAlpha( aTextColor.GetAlpha() ); } if( rState.textReliefStyle != FontRelief::NONE ) @@ -935,7 +935,7 @@ namespace cppcanvas::internal if( aTextColor == COL_WHITE ) aReliefColor = COL_BLACK; - aReliefColor.SetTransparency( aTextColor.GetTransparency() ); + aReliefColor.SetAlpha( aTextColor.GetAlpha() ); } if (rState.isTextFillColorSet) @@ -1422,7 +1422,7 @@ namespace cppcanvas::internal // force alpha part of color to // opaque. transparent painting is done // explicitly via MetaActionType::Transparent - aColor.SetTransparency(0); + aColor.SetAlpha(255); rStates.getState().textColor = vcl::unotools::colorToDoubleSequence( |