vcl/source/bitmap/bitmappaint.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit d367142731f09c7be03ce1707e3aeab3c55b4f21 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Feb 18 16:12:52 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Feb 18 17:02:49 2024 +0100 restore comment I removed in bb3157e38bfffd23505abc35f790043392f43d2c Change-Id: Ib0b81a5e39657bdd73dd3a8659bb0c346b5532e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163554 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx index bbf3239905f6..8cf32d3cde6f 100644 --- a/vcl/source/bitmap/bitmappaint.cxx +++ b/vcl/source/bitmap/bitmappaint.cxx @@ -86,6 +86,9 @@ bool Bitmap::Invert() if (pWriteAcc->GetPalette().IsGreyPalette8Bit()) { + // For alpha masks, we need to actually invert the underlying data + // or the optimisations elsewhere do not always work right. If this is a bottleneck, + // probably better to try improving it inside the mxSalBmp->Invert() call above. for (tools::Long nY = 0; nY < nHeight; nY++) { Scanline pScanline = pWriteAcc->GetScanline(nY);