mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
thorvg: Update to 0.13.3, add webp loader
Remove embedded png loader, we use the external (libpng) one.
This commit is contained in:
parent
c4279fe3e0
commit
1cf9f37589
37 changed files with 630 additions and 3037 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue