mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
(mpng) Cleanups
This commit is contained in:
parent
6bb81b59d5
commit
2596e1c0f6
@ -515,11 +515,11 @@ bool png_decode(const void * pngdata, size_t pnglen, struct mpng_image * img, en
|
|||||||
} while(i);
|
} while(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
img->width=width;
|
img->width = width;
|
||||||
img->height=height;
|
img->height = height;
|
||||||
img->pixels=out;
|
img->pixels = out;
|
||||||
img->pitch=videofmt_byte_per_pixel(format)*width;
|
img->pitch = videofmt_byte_per_pixel(format)*width;
|
||||||
img->format=format;
|
img->format = format;
|
||||||
tinfl_deinit(&inflator);
|
tinfl_deinit(&inflator);
|
||||||
free(pixels);
|
free(pixels);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user