[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 25 08:56:05 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 278a365c68e0878ef2e443deffa281f2edf57e9a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Nov 24 20:58:04 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 25 09:55:24 2019 +0100
Related: tdf#126043 use fastest png compression ratio
doesn't make much difference, but doesn't hurt
Change-Id: I60a033026b11853d76e77f7871fb33fb2ae7eccb
Reviewed-on: https://gerrit.libreoffice.org/83622
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index ffbf5e11446d..b182270b23d3 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -2923,7 +2923,13 @@ namespace
Image aImage(rImage);
std::unique_ptr<SvMemoryStream> xMemStm(new SvMemoryStream);
- vcl::PNGWriter aWriter(aImage.GetBitmapEx());
+
+ css::uno::Sequence<css::beans::PropertyValue> aFilterData(1);
+ aFilterData[0].Name = "Compression";
+ // We "know" that this gets passed to zlib's deflateInit2_(). 1 means best speed.
+ aFilterData[0].Value <<= 1;
+
+ vcl::PNGWriter aWriter(aImage.GetBitmapEx(), &aFilterData);
aWriter.Write(*xMemStm);
return load_icon_from_stream(*xMemStm);
More information about the Libreoffice-commits
mailing list