[Libreoffice-commits] core.git: vcl/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 8 07:56:47 UTC 2020
vcl/source/outdev/bitmap.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c2275ee554cae1cf4909a4fc12be4be127be011e
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Mon Sep 7 22:27:17 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Sep 8 09:56:03 2020 +0200
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 at collabora.com>
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
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));
}
More information about the Libreoffice-commits
mailing list