diff --git a/source/Irrlicht/CImageWriterPNG.cpp b/source/Irrlicht/CImageWriterPNG.cpp index 100b56c3..920ce5fc 100644 --- a/source/Irrlicht/CImageWriterPNG.cpp +++ b/source/Irrlicht/CImageWriterPNG.cpp @@ -87,9 +87,10 @@ bool CImageWriterPNG::writeImage(io::IWriteFile* file, IImage* image,u32 param) return false; } - // Set compression level - // Sadly Irrlicht used param=0 as default and an u32 type - // So to avoid breaking downward compatibility we keep 0 as default (which is -1 in zlib) and subtract 1 from param to everything into zlib range + // Set compression level + // Sadly Irrlicht used param=0 as default and an u32 type. + // So to avoid breaking downward compatibility we keep 0 as default (which is -1 in zlib) + // and subtract 1 from param to get everything into zlib range. if (param <= 10) // Z_BEST_COMPRESSION is 9 - values above have so far no meaning png_set_compression_level(png_ptr, (int)param-1);