mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
Remove unused variables
This commit is contained in:
parent
da6ac4aae7
commit
bc3eb34da5
@ -2530,7 +2530,6 @@ bool config_save_file(const char *path)
|
||||
{
|
||||
float msg_color;
|
||||
unsigned i = 0;
|
||||
bool tmp_bool = false;
|
||||
bool ret = false;
|
||||
config_file_t *conf = config_file_new(path);
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
@ -1016,27 +1016,23 @@ bool rpng_iterate_image(rpng_t *rpng)
|
||||
break;
|
||||
|
||||
case PNG_CHUNK_tRNS:
|
||||
if (rpng->has_idat)
|
||||
goto error;
|
||||
|
||||
if (rpng->ihdr.color_type == PNG_IHDR_COLOR_PLT)
|
||||
{
|
||||
unsigned entries = chunk.size / 3;
|
||||
|
||||
if (rpng->has_idat)
|
||||
/* we should compare with the number of palette entries */
|
||||
if (chunk.size > 256)
|
||||
goto error;
|
||||
|
||||
if (rpng->ihdr.color_type == PNG_IHDR_COLOR_PLT)
|
||||
{
|
||||
/* we should compare with the number of palette entries */
|
||||
if (chunk.size > 256)
|
||||
goto error;
|
||||
|
||||
buf += 8;
|
||||
|
||||
if (!png_read_trns(buf, rpng->palette, chunk.size))
|
||||
goto error;
|
||||
}
|
||||
/* TODO: support colorkey in grayscale and truecolor images */
|
||||
buf += 8;
|
||||
|
||||
rpng->has_trns = true;
|
||||
if (!png_read_trns(buf, rpng->palette, chunk.size))
|
||||
goto error;
|
||||
}
|
||||
/* TODO: support colorkey in grayscale and truecolor images */
|
||||
|
||||
rpng->has_trns = true;
|
||||
break;
|
||||
|
||||
case PNG_CHUNK_IDAT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user