removed unused path parameter to rpng_load_image_argb

We already have a pointer to FILE of an opened file stream, so why would we need a file path string for loading one if we already had one loaded supplied to this func?
This commit is contained in:
unknown 2015-02-19 16:24:03 -05:00
parent 810aa8a5ed
commit 4429819ee7

View File

@ -769,7 +769,7 @@ bool rpng_load_image_argb_process(uint8_t *inflate_buf,
}
bool rpng_load_image_argb_init(FILE *file,
const char *path, uint32_t **data,
uint32_t **data,
unsigned *width, unsigned *height,
long *file_len)
{
@ -813,8 +813,7 @@ bool rpng_load_image_argb(const char *path, uint32_t **data,
GOTO_END_ERROR();
}
if (!rpng_load_image_argb_init(file, path,
data, width, height, &file_len))
if (!rpng_load_image_argb_init(file, data, width, height, &file_len))
GOTO_END_ERROR();
/* feof() apparently isn't triggered after a seek (IEND). */