Fix 'declaration hides parameter'
This commit is contained in:
parent
31f142ef9c
commit
2e3162cdca
|
@ -249,7 +249,8 @@ static uint8_t *rtga__tga_load(rtga__context *s,
|
|||
/* TGA info */
|
||||
*x = tga_width;
|
||||
*y = tga_height;
|
||||
if (comp) *comp = tga_comp;
|
||||
if (comp)
|
||||
*comp = tga_comp;
|
||||
|
||||
tga_data = (unsigned char*)malloc((size_t)tga_width * tga_height * tga_comp);
|
||||
if (!tga_data)
|
||||
|
@ -263,8 +264,8 @@ static uint8_t *rtga__tga_load(rtga__context *s,
|
|||
int i;
|
||||
for (i=0; i < tga_height; ++i)
|
||||
{
|
||||
int y = tga_inverted ? tga_height -i - 1 : i;
|
||||
uint8_t *tga_row = tga_data + y*tga_width*tga_comp;
|
||||
int _y = tga_inverted ? (tga_height -i - 1) : i;
|
||||
uint8_t *tga_row = tga_data + _y * tga_width * tga_comp;
|
||||
rtga__getn(s, tga_row, tga_width * tga_comp);
|
||||
}
|
||||
}
|
||||
|
@ -372,7 +373,7 @@ static uint8_t *rtga__tga_load(rtga__context *s,
|
|||
}
|
||||
|
||||
/* Clear my palette, if I had one */
|
||||
if ( tga_palette != NULL )
|
||||
if (tga_palette)
|
||||
free(tga_palette);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue