diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-09 14:06:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-10 10:45:58 +0000 |
commit | b00c1ea3c41aabd47f4965620e60462627f8ed26 (patch) | |
tree | 2b567b384e145caca69272494fc1f6094147e761 /include | |
parent | f1d00da1bb16330bef9316a3e4f04506f9bb862f (diff) |
rename setAlphaFrom->ChangeColorAlpha and fix parameter
The nAlphaTo parameter was actually transparency. Change the
implementation and the call sites to actually use alpha.
Also remove one of the calls in Graphic::colorChange, because if the
BitmapEx has no alpha channel, the call was going to do nothing anyway.
Change-Id: I0bf27835b62596ac7c497c8606ceba04fcf859a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145205
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/bitmapex.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index f847c9f6dcb2..6d86d0633f64 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -434,7 +434,7 @@ public: const css::uno::Reference< css::rendering::XBitmapCanvas > &xBitmapCanvas, const Size &rSize ); - void setAlphaFrom( sal_uInt8 cIndexFrom, sal_Int8 nAlphaTo ); + void ChangeColorAlpha( sal_uInt8 cIndexFrom, sal_Int8 nAlphaTo ); void AdjustTransparency( sal_uInt8 cTrans ); |