actually assign len in Refresh_Image_Info
continuous-integration/drone/push Build is passing Details

abi_break
cosmonaut 2024-02-25 01:44:19 -08:00
parent 899f961461
commit 2361cec274
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,7 @@ uint8_t* Refresh_Image_Load(
* -flibit
*/
pixels = result;
*len = (*w) * (*h) *4;
*len = (*w) * (*h) * 4;
for (i = 0; i < *len; i += 4, pixels += 4)
{
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());
}
*len = (*w) * (*h) * 4;
return (uint8_t) result;
}