actually assign len in Refresh_Image_Info
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
899f961461
commit
2361cec274
|
@ -218,7 +218,7 @@ uint8_t* Refresh_Image_Load(
|
||||||
* -flibit
|
* -flibit
|
||||||
*/
|
*/
|
||||||
pixels = result;
|
pixels = result;
|
||||||
*len = (*w) * (*h) *4;
|
*len = (*w) * (*h) * 4;
|
||||||
for (i = 0; i < *len; i += 4, pixels += 4)
|
for (i = 0; i < *len; i += 4, pixels += 4)
|
||||||
{
|
{
|
||||||
if (pixels[3] == 0)
|
if (pixels[3] == 0)
|
||||||
|
@ -255,6 +255,8 @@ uint8_t Refresh_Image_Info(
|
||||||
SDL_LogWarn(SDL_LOG_CATEGORY_ERROR, "Image info failed: %s", stbi_failure_reason());
|
SDL_LogWarn(SDL_LOG_CATEGORY_ERROR, "Image info failed: %s", stbi_failure_reason());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*len = (*w) * (*h) * 4;
|
||||||
|
|
||||||
return (uint8_t) result;
|
return (uint8_t) result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue