summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-07 22:27:17 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-09-08 09:56:03 +0200
commitc2275ee554cae1cf4909a4fc12be4be127be011e (patch)
tree8a0a86cc7c920c2cdc4e39a603eefbf2cdba9680 /vcl
parentf9a99998048ed0fa6e2743c7473919a9a189dcda (diff)
prefer 8bit bitmap masks to 1bpp masks
Similarly to df9f0e3cc57fb69ee38918b25ed91d97d1972685, 8bpp bitmaps are faster. Change-Id: Ied2dffd7987e1e1ab3f6b1e5d1d64fe140023320 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102207 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/bitmap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index c414a3921789..fc6095812b6c 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1065,7 +1065,7 @@ bool OutputDevice::DrawTransformBitmapExDirect(
}
else if (mpAlphaVDev)
{
- aAlphaBitmap = Bitmap(rBitmapEx.GetSizePixel(), 1);
+ aAlphaBitmap = Bitmap(rBitmapEx.GetSizePixel(), 8);
aAlphaBitmap.Erase(COL_BLACK);
}
@@ -1082,7 +1082,7 @@ bool OutputDevice::DrawTransformBitmapExDirect(
if (mpAlphaVDev)
{
// Merge bitmap alpha to alpha device
- Bitmap aBlack(rBitmapEx.GetSizePixel(), 1);
+ Bitmap aBlack(rBitmapEx.GetSizePixel(), 8);
aBlack.Erase(COL_BLACK);
mpAlphaVDev->DrawTransformBitmapExDirect(aFullTransform, BitmapEx(aBlack, aAlphaBitmap));
}