summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-18 09:53:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-18 13:38:36 +0200
commit25f4ef5aa5488869b3bad045ba203c6b22b2e2f0 (patch)
tree78a15cc5a92192c10392039f10734a0b189d13d2 /drawinglayer
parentec2e02cfa41510c3d30b118cbf7595c84a046d03 (diff)
tdf#157792 followup
avoid doing some extra Invert() operations by creating an AlphaMask instead of a Bitmap to pass to the BitmapEx constructor. Change-Id: I1af3a5e65010b346fa0d0c56836d567e51c9b58b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158106 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/wmfemfhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx
index aa48149219f3..31bad2a0abd4 100644
--- a/drawinglayer/source/tools/wmfemfhelper.cxx
+++ b/drawinglayer/source/tools/wmfemfhelper.cxx
@@ -642,7 +642,7 @@ namespace wmfemfhelper
aWhite, rMaskColor
};
- Bitmap aMask(rBitmap.CreateMask(aWhite));
+ AlphaMask aMask(rBitmap.CreateAlphaMask(aWhite));
Bitmap aSolid(rBitmap.GetSizePixel(), vcl::PixelFormat::N8_BPP, &aBiLevelPalette);
aSolid.Erase(rMaskColor);