mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(image_rpng.c) Fix warning
This commit is contained in:
parent
6bde636fac
commit
3879f1214d
@ -126,9 +126,9 @@ static bool rpng_image_load_argb_shift(const char *path, struct texture_image *o
|
|||||||
// This is quite uncommon ...
|
// This is quite uncommon ...
|
||||||
if (a_shift != 24 || r_shift != 16 || g_shift != 8 || b_shift != 0)
|
if (a_shift != 24 || r_shift != 16 || g_shift != 8 || b_shift != 0)
|
||||||
{
|
{
|
||||||
int i;
|
uint32_t i, num_pixels, *pixels;
|
||||||
unsigned num_pixels = out_img->width * out_img->height;
|
num_pixels = out_img->width * out_img->height;
|
||||||
uint32_t *pixels = (uint32_t*)out_img->pixels;
|
pixels = (uint32_t*)out_img->pixels;
|
||||||
|
|
||||||
for (i = 0; i < num_pixels; i++)
|
for (i = 0; i < num_pixels; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user