mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 13:25:28 +00:00
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:
parent
810aa8a5ed
commit
4429819ee7
@ -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). */
|
||||
|
Loading…
x
Reference in New Issue
Block a user