mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-05 01:16:38 +00:00
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
Block a user