diff --git a/EgtGeneral.rc b/EgtGeneral.rc index 927b4aa..96b0075 100644 Binary files a/EgtGeneral.rc and b/EgtGeneral.rc differ diff --git a/Writer.cpp b/Writer.cpp index 344e21c..5fdd316 100644 --- a/Writer.cpp +++ b/Writer.cpp @@ -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 ; }