[Libreoffice-commits] core.git: vcl/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 26 07:29:52 UTC 2021
vcl/source/gdi/gdimtf.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit a76fc7e8049734d4a676e5b07e846e1812270e6a
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Mar 25 21:25:12 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Mar 26 08:28:42 2021 +0100
vcl: Create 8-bit palette bitmap instead of 4-bit in ImplBmpMonoFnc
Change-Id: I28525e54e4d2b932cfdd6369b72270db81f68214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113136
Tested-by: Tomaž Vajngerl <quikee at gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 110485abf4e6..9d329439de80 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -1771,12 +1771,11 @@ Color GDIMetaFile::ImplColMonoFnc( const Color&, const void* pColParam )
BitmapEx GDIMetaFile::ImplBmpMonoFnc( const BitmapEx& rBmpEx, const void* pBmpParam )
{
BitmapPalette aPal( 3 );
-
aPal[ 0 ] = COL_BLACK;
aPal[ 1 ] = COL_WHITE;
aPal[ 2 ] = static_cast<const ImplBmpMonoParam*>(pBmpParam)->aColor;
- Bitmap aBmp(rBmpEx.GetSizePixel(), vcl::PixelFormat::N4_BPP, &aPal);
+ Bitmap aBmp(rBmpEx.GetSizePixel(), vcl::PixelFormat::N8_BPP, &aPal);
aBmp.Erase( static_cast<const ImplBmpMonoParam*>(pBmpParam)->aColor );
if( rBmpEx.IsAlpha() )
More information about the Libreoffice-commits
mailing list