vcl/source/outdev/bitmap.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
New commits: commit 10599fd334e6459963a779c64fe75a68af2cdc22 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Sat Aug 2 16:22:50 2025 +1000 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Aug 8 15:55:35 2025 +0200 vcl: rename to lcl_AlphaBlendColors() and remove temp variable Change-Id: Ib19394303d26bddf683db23d76288fdeb25f9cf4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188801 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index bd49345c8acd..5423cfe88fb6 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -423,7 +423,7 @@ sal_uInt8 lcl_CalcColor( const sal_uInt8 nSourceColor, const sal_uInt8 nSourceAl // blend one color with another color with an alpha value -BitmapColor lcl_AlphaBlend(const BitmapColor& rCol1, const BitmapColor& rCol2, const sal_uInt8 nAlpha) +BitmapColor lcl_AlphaBlendColors(const BitmapColor& rCol1, const BitmapColor& rCol2, const sal_uInt8 nAlpha) { BitmapColor aCol(rCol2); @@ -464,11 +464,10 @@ Bitmap lcl_BlendBitmapWithAlpha( for( int nX = 0; nX < nDstWidth; nX++ ) { - BitmapColor aDstCol = lcl_AlphaBlend(pSrcBmp->GetColor(nMapY, pMapX[nX]), - pDstBmp->GetColor(nY, nX), - pSrcAlphaBmp->GetPixelIndex(nMapY, pMapX[nX])); - - pDstBmp->SetPixelOnData(pScanlineB, nX, aDstCol); + pDstBmp->SetPixelOnData(pScanlineB, nX, + lcl_AlphaBlendColors(pSrcBmp->GetColor(nMapY, pMapX[nX]), + pDstBmp->GetColor(nY, nX), + pSrcAlphaBmp->GetPixelIndex(nMapY, pMapX[nX]))); } } }