vcl/skia/osx/bitmap.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 2f5bc5989bab384fee066d0346eb7312f4a58d2a Author: Patrick Luby <plub...@neooffice.org> AuthorDate: Wed Aug 23 08:32:48 2023 -0400 Commit: Patrick Luby <plub...@neooffice.org> CommitDate: Wed Aug 23 16:48:44 2023 +0200
tdf#156854 invert alpha mask for macOS native menu item images At the time of this change, only the AquaSalMenu class calls this function so it should be safe to invert the alpha mask here. Change-Id: Id67ad0f453bbf88b43d37087eef36a27ced3ad37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155977 Tested-by: Jenkins Reviewed-by: Patrick Luby <plub...@neooffice.org> diff --git a/vcl/skia/osx/bitmap.cxx b/vcl/skia/osx/bitmap.cxx index 1052efc32de7..edb339ce5292 100644 --- a/vcl/skia/osx/bitmap.cxx +++ b/vcl/skia/osx/bitmap.cxx @@ -63,6 +63,10 @@ CGImageRef createCGImage(const Image& rImage) else { AlphaMask alpha(bitmapEx.GetAlphaMask()); + // tdf#156854 invert alpha mask for macOS native menu item images + // At the time of this change, only the AquaSalMenu class calls this + // function so it should be safe to invert the alpha mask here. + alpha.Invert(); Bitmap alphaBitmap(alpha.GetBitmap()); assert(dynamic_cast<SkiaSalBitmap*>(alphaBitmap.ImplGetSalBitmap().get()) != nullptr); SkiaSalBitmap* skiaAlpha