Fix issue with screenshots

git-svn-id: https://svn.eduke32.com/eduke32@6399 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-29 09:48:43 +00:00
parent 7c7f550100
commit d89909997c

View file

@ -16,7 +16,7 @@ static void png_write_uint32(uint32_t const in)
static void png_write_chunk(uint32_t const size, char const *const type,
uint8_t const *const data, uint32_t flags)
{
uint32_t chunk_size = flags & CHUNK_COMPRESSED ? compressBound(size) : size;
mz_ulong chunk_size = flags & CHUNK_COMPRESSED ? compressBound(size) : size;
uint8_t * const chunk = (uint8_t *) Xcalloc(1, 4 + chunk_size);
Bmemcpy(chunk, type, 4);