vcl/win/gdi/gdiimpl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit e6059ba88075d68075ce4dcb4bcef17a61b1f9b9 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Feb 4 09:21:13 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Feb 4 10:21:33 2025 +0100 improve variable naming these are alpha, not transparency Change-Id: I0c2a28793a5ef5a759f20318971360cc25db6ba7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181082 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index beb3834459ec..8889e43f09d4 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -2032,8 +2032,8 @@ void WinSalGraphicsImpl::drawPolyPolygon( } Gdiplus::Graphics aGraphics(mrParent.getHDC()); - const sal_uInt8 aTrans(sal_uInt8(255) - static_cast<sal_uInt8>(basegfx::fround(fTransparency * 255.0))); - const Gdiplus::Color aTestColor(aTrans, maFillColor.GetRed(), maFillColor.GetGreen(), maFillColor.GetBlue()); + const sal_uInt8 nAlpha(sal_uInt8(255) - static_cast<sal_uInt8>(basegfx::fround(fTransparency * 255.0))); + const Gdiplus::Color aTestColor(nAlpha, maFillColor.GetRed(), maFillColor.GetGreen(), maFillColor.GetBlue()); const Gdiplus::SolidBrush aSolidBrush(aTestColor.GetValue()); // Set full (Object-to-Device) transformation - if used @@ -2210,8 +2210,8 @@ bool WinSalGraphicsImpl::drawPolyLine( } Gdiplus::Graphics aGraphics(mrParent.getHDC()); - const sal_uInt8 aTrans = static_cast<sal_uInt8>(basegfx::fround( 255 * (1.0 - fTransparency) )); - const Gdiplus::Color aTestColor(aTrans, maLineColor.GetRed(), maLineColor.GetGreen(), maLineColor.GetBlue()); + const sal_uInt8 nAlpha = static_cast<sal_uInt8>(basegfx::fround( 255 * (1.0 - fTransparency) )); + const Gdiplus::Color aTestColor(nAlpha, maLineColor.GetRed(), maLineColor.GetGreen(), maLineColor.GetBlue()); Gdiplus::Pen aPen(aTestColor.GetValue(), Gdiplus::REAL(fLineWidth)); bool bNoLineJoin(false);