summaryrefslogtreecommitdiffstats
path: root/thirdparty
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-19 11:43:21 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-19 11:43:27 +0200
commit38716b94dbcc9dbfb60a49399c5118f01fc79c45 (patch)
tree289b73d6f2e71ee847f2a7a8be04a5fa969695d9 /thirdparty
parent9a4942f2f59af3c9a17187e0ed20ffa40d5f9514 (diff)
downloadredot-engine-38716b94dbcc9dbfb60a49399c5118f01fc79c45.tar.gz
thorvg: Fix unintended use of `float_t` type, again
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/thorvg/patches/pr2338-float_t.patch13
-rw-r--r--thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp2
2 files changed, 14 insertions, 1 deletions
diff --git a/thirdparty/thorvg/patches/pr2338-float_t.patch b/thirdparty/thorvg/patches/pr2338-float_t.patch
new file mode 100644
index 0000000000..20b9050cbb
--- /dev/null
+++ b/thirdparty/thorvg/patches/pr2338-float_t.patch
@@ -0,0 +1,13 @@
+diff --git a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
+index f59994aae6..b2ce38852c 100644
+--- a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
++++ b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
+@@ -709,7 +709,7 @@ static bool _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, char**
+ *ref = _idFromUrl((const char*)(str + 3));
+ return true;
+ } else if (len >= 10 && (str[0] == 'h' || str[0] == 'H') && (str[1] == 's' || str[1] == 'S') && (str[2] == 'l' || str[2] == 'L') && str[3] == '(' && str[len - 1] == ')') {
+- float_t th, ts, tb;
++ float th, ts, tb;
+ const char *content, *hue, *satuation, *brightness;
+ content = str + 4;
+ content = _skipSpace(content, nullptr);
diff --git a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
index f59994aae6..b2ce38852c 100644
--- a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
+++ b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
@@ -709,7 +709,7 @@ static bool _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, char**
*ref = _idFromUrl((const char*)(str + 3));
return true;
} else if (len >= 10 && (str[0] == 'h' || str[0] == 'H') && (str[1] == 's' || str[1] == 'S') && (str[2] == 'l' || str[2] == 'L') && str[3] == '(' && str[len - 1] == ')') {
- float_t th, ts, tb;
+ float th, ts, tb;
const char *content, *hue, *satuation, *brightness;
content = str + 4;
content = _skipSpace(content, nullptr);