fixed getting wrong alpha values from tRNS chunk

This commit is contained in:
Andre Leiradella 2016-05-29 11:30:04 -03:00
parent 88eab60b13
commit 9cc830ecd6

View File

@ -1028,6 +1028,8 @@ bool rpng_iterate_image(rpng_t *rpng)
if (chunk.size > 256)
goto error;
buf += 8;
if (!png_read_trns(buf, rpng->palette, chunk.size))
goto error;
}