diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 12:20:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 15:30:16 +0200 |
commit | 200d530f473566d7d7aa30f848bc28a72247d674 (patch) | |
tree | 642dcb6cbfa123faeeb32c1514bbcae5edb96f5e /vcl | |
parent | 5e82dc511ea266776a06c9da62c41e873b2cbafc (diff) |
Split ZCodec::BeginCompression param into its 3 independent components
Change-Id: I275abafe81c8bb617c70646244b14f6cecc33854
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pngread.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pngwrite.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx index 8a05013c28b4..cae7b38e4bc0 100644 --- a/vcl/source/gdi/pngread.cxx +++ b/vcl/source/gdi/pngread.cxx @@ -900,7 +900,7 @@ void PNGReaderImpl::ImplReadIDAT() if ( !mbzCodecInUse ) { mbzCodecInUse = true; - mpZCodec->BeginCompression( ZCODEC_PNG_DEFAULT ); + mpZCodec->BeginCompression( ZCODEC_NO_COMPRESSION, true ); } mpZCodec->SetBreak( mnChunkLen ); SvMemoryStream aIStrm( &(*maDataIter), mnChunkLen, STREAM_READ ); diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index c4e950987922..9057a48221f6 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -386,7 +386,7 @@ void PNGWriterImpl::ImplWriteIDAT () mpCurrentScan = new sal_uInt8[ mnDeflateInSize ]; ImplClearFirstScanline(); } - mpZCodec->BeginCompression( ZCODEC_PNG_DEFAULT + mnCompLevel ); + mpZCodec->BeginCompression( mnCompLevel, true ); mpZCodec->SetCRC( mnCRC ); SvMemoryStream aOStm; if ( mnInterlaced == 0 ) diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index fd1d0dc6547b..606fd550da97 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -322,7 +322,7 @@ void PPDDecompressStream::Open( const OUString& i_rFile ) // so let's try to decompress the stream mpMemStream = new SvMemoryStream( 4096, 4096 ); ZCodec aCodec; - aCodec.BeginCompression( ZCODEC_DEFAULT_COMPRESSION | ZCODEC_GZ_LIB ); + aCodec.BeginCompression( ZCODEC_DEFAULT_COMPRESSION, false, true ); long nComp = aCodec.Decompress( *mpFileStream, *mpMemStream ); aCodec.EndCompression(); if( nComp < 0 ) |