fixed getting wrong alpha values from tRNS chunk
This commit is contained in:
parent
88eab60b13
commit
9cc830ecd6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue