mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-05 18:00:41 +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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user