[Libreoffice-commits] core.git: vcl/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 26 07:31:14 UTC 2021
vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 9c0a1a6ba2727d8cbca85979a21304d3a56eebb0
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Mar 25 22:48:42 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Mar 26 08:30:26 2021 +0100
vcl: remove use of 4-bit bitmap in BitmapSimpleColorQuantizationFilter
Just use 1-bit or 8-bit instead.
Change-Id: If3b4f82caf9a851741e7e8938a019a3bd21665e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113139
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
index 25df8ae3a46c..281a2d066fd5 100644
--- a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
+++ b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
@@ -34,8 +34,6 @@ BitmapEx BitmapSimpleColorQuantizationFilter::execute(BitmapEx const& aBitmapEx)
if (nColorCount <= 2)
ePixelFormat = vcl::PixelFormat::N1_BPP;
- else if (nColorCount <= 16)
- ePixelFormat = vcl::PixelFormat::N4_BPP;
else
ePixelFormat = vcl::PixelFormat::N8_BPP;
More information about the Libreoffice-commits
mailing list