mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Since PNG writing is used for MNG as well, switch back to default compression
instead of best compression in order to keep the performance reasonable.
This commit is contained in:
parent
dc07b3d04a
commit
ce80e373b2
@ -838,7 +838,7 @@ static png_error write_deflated_chunk(core_file *fp, UINT8 *data, UINT32 type, U
|
|||||||
memset(&stream, 0, sizeof(stream));
|
memset(&stream, 0, sizeof(stream));
|
||||||
stream.next_in = data;
|
stream.next_in = data;
|
||||||
stream.avail_in = length;
|
stream.avail_in = length;
|
||||||
zerr = deflateInit(&stream, Z_BEST_COMPRESSION);
|
zerr = deflateInit(&stream, Z_DEFAULT_COMPRESSION);
|
||||||
if (zerr != Z_OK)
|
if (zerr != Z_OK)
|
||||||
return PNGERR_COMPRESS_ERROR;
|
return PNGERR_COMPRESS_ERROR;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user