From ad4cd6ca7de53ae51df6c83610d3759e41043e5a Mon Sep 17 00:00:00 2001 From: cutealien Date: Mon, 13 Nov 2023 15:04:40 +0000 Subject: [PATCH] Grammar Had missing word in comment git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6571 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CImageWriterPNG.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);