thorvg: Update to 0.13.3, add webp loader

Remove embedded png loader, we use the external (libpng) one.
This commit is contained in:
Rémi Verschelde 2024-05-10 09:30:57 +02:00
parent c4279fe3e0
commit 1cf9f37589
No known key found for this signature in database
GPG key ID: C3336907360768E1
37 changed files with 630 additions and 3037 deletions

View file

@ -47,7 +47,6 @@ size_t svgUtilURLDecode(const char *src, char** dst)
if (length == 0) return 0;
char* decoded = (char*)malloc(sizeof(char) * length + 1);
decoded[length] = '\0';
char a, b;
int idx =0;
@ -64,7 +63,9 @@ size_t svgUtilURLDecode(const char *src, char** dst)
decoded[idx++] = *src++;
}
}
decoded[idx] = '\0';
*dst = decoded;
return length + 1;
return idx + 1;
}