vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 9c0a1a6ba2727d8cbca85979a21304d3a56eebb0 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Thu Mar 25 22:48:42 2021 +0900 Commit: Tomaž Vajngerl <qui...@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 <qui...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits