EgtGeneral 2.5h1 :

- modifica per adattare Writer a nuova versione di zlib.
This commit is contained in:
Dario Sassi
2023-08-21 12:04:03 +02:00
parent 3696022974
commit 7a8bb61089
2 changed files with 5 additions and 3 deletions
BIN
View File
Binary file not shown.
+5 -3
View File
@@ -31,9 +31,11 @@ Writer::Init( const string& sFileOut, bool bCompressed)
const int DIM_BUFFER = 65536 ;
if ( gzbuffer( m_OutFile, DIM_BUFFER) != Z_OK)
return false ;
const int COMPR_LEVEL = 3 ; // 0 = no compression ... 9 = max compression
if ( gzsetparams( m_OutFile, COMPR_LEVEL, Z_DEFAULT_STRATEGY) != Z_OK)
return false ;
if ( bCompressed) {
const int COMPR_LEVEL = 3 ; // 0 = no compression ... 9 = max compression
if ( gzsetparams( m_OutFile, COMPR_LEVEL, Z_DEFAULT_STRATEGY) != Z_OK)
return false ;
}
return true ;
}