mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 09:43:52 +01:00
Grammar
Had missing word in comment git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6571 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
8bf9cf5471
commit
ad4cd6ca7d
@ -88,8 +88,9 @@ bool CImageWriterPNG::writeImage(io::IWriteFile* file, IImage* image,u32 param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set compression level
|
// Set compression level
|
||||||
// Sadly Irrlicht used param=0 as default and an u32 type
|
// 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
|
// 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
|
if (param <= 10) // Z_BEST_COMPRESSION is 9 - values above have so far no meaning
|
||||||
png_set_compression_level(png_ptr, (int)param-1);
|
png_set_compression_level(png_ptr, (int)param-1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user