sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 601ba8d8dfdc613ad801f1a7d66436d5e3c8fc4f Author: offtkp <parisop...@gmail.com> AuthorDate: Sat Jul 16 13:03:05 2022 +0300 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Jul 19 13:08:40 2022 +0200 Replace old png writer in SlsBitmapCompressor.cxx Change-Id: Idc8ddcce918c5258f623f3b9065cfb523cb23629 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137122 Tested-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx index d4da935ddd0c..2d63bd47493e 100644 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx @@ -22,7 +22,7 @@ #include <tools/stream.hxx> #include <vcl/bitmapex.hxx> #include <vcl/filter/PngImageReader.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> namespace sd::slidesorter::cache { @@ -160,9 +160,9 @@ public: std::shared_ptr<BitmapReplacement> PngCompression::Compress (const BitmapEx& rBitmap) const { - vcl::PNGWriter aWriter(rBitmap); SvMemoryStream aStream (32768, 32768); - aWriter.Write(aStream); + vcl::PngImageWriter aWriter(aStream); + aWriter.write(rBitmap); auto pResult = std::make_shared<PngReplacement>(); pResult->mnDataSize = aStream.Tell();