diff options
author | Martin Capitanio <capnm@capitanio.org> | 2023-10-20 07:41:11 +0200 |
---|---|---|
committer | Martin Capitanio <capnm@capitanio.org> | 2023-10-20 07:55:51 +0200 |
commit | 2ed51e3bc293cb3d8ada2fd3fd7db22abc3660bd (patch) | |
tree | 4385be25577319191756b0cf850f78055c618911 /thirdparty/thorvg | |
parent | f8818f85e6c43cdf1277e8ae85eba19ca0a003b0 (diff) | |
download | redot-engine-2ed51e3bc293cb3d8ada2fd3fd7db22abc3660bd.tar.gz |
ThorVG: update to v0.11.2
https://github.com/thorvg/thorvg/releases/tag/v0.11.2
Godot related:
+ [JPG] Fixed a regression bug that previously disrupted image decoding.
+ [SwEngine] Resolved a default alpha blending bug.
Fixes #83611 alpha blending.
Diffstat (limited to 'thirdparty/thorvg')
-rw-r--r-- | thirdparty/thorvg/inc/config.h | 2 | ||||
-rw-r--r-- | thirdparty/thorvg/patches/loader_jpg-fix_regression_bug.patch | 13 | ||||
-rw-r--r-- | thirdparty/thorvg/src/renderer/sw_engine/tvgSwRasterC.h | 2 | ||||
-rwxr-xr-x | thirdparty/thorvg/update-thorvg.sh | 2 |
4 files changed, 3 insertions, 16 deletions
diff --git a/thirdparty/thorvg/inc/config.h b/thirdparty/thorvg/inc/config.h index 3152dfabd8..818739b113 100644 --- a/thirdparty/thorvg/inc/config.h +++ b/thirdparty/thorvg/inc/config.h @@ -9,5 +9,5 @@ // For internal debugging: //#define THORVG_LOG_ENABLED -#define THORVG_VERSION_STRING "0.11.1" +#define THORVG_VERSION_STRING "0.11.2" #endif diff --git a/thirdparty/thorvg/patches/loader_jpg-fix_regression_bug.patch b/thirdparty/thorvg/patches/loader_jpg-fix_regression_bug.patch deleted file mode 100644 index a71883cb35..0000000000 --- a/thirdparty/thorvg/patches/loader_jpg-fix_regression_bug.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/thirdparty/thorvg/src/loaders/jpg/tvgJpgd.cpp b/thirdparty/thorvg/src/loaders/jpg/tvgJpgd.cpp -index 88d359aaa3..61a5dc1c0f 100644 ---- a/thirdparty/thorvg/src/loaders/jpg/tvgJpgd.cpp -+++ b/thirdparty/thorvg/src/loaders/jpg/tvgJpgd.cpp -@@ -431,7 +431,7 @@ struct Row<1> - { - static void idct(int* pTemp, const jpgd_block_t* pSrc) - { -- const int dcval = pSrc[0] * (pSrc[0] * (PASS1_BITS * 2)); -+ const int dcval = pSrc[0] * PASS1_BITS * 2; - - pTemp[0] = dcval; - pTemp[1] = dcval; diff --git a/thirdparty/thorvg/src/renderer/sw_engine/tvgSwRasterC.h b/thirdparty/thorvg/src/renderer/sw_engine/tvgSwRasterC.h index eb377e78e3..da3c7077e8 100644 --- a/thirdparty/thorvg/src/renderer/sw_engine/tvgSwRasterC.h +++ b/thirdparty/thorvg/src/renderer/sw_engine/tvgSwRasterC.h @@ -101,7 +101,7 @@ static bool inline cRasterTranslucentRect(SwSurface* surface, const SwBBox& regi //32bits channels if (surface->channelSize == sizeof(uint32_t)) { - auto color = surface->join(r, g, b, 255); + auto color = surface->join(r, g, b, a); auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; auto ialpha = 255 - a; for (uint32_t y = 0; y < h; ++y) { diff --git a/thirdparty/thorvg/update-thorvg.sh b/thirdparty/thorvg/update-thorvg.sh index 0139f522b8..04d1dd0b9a 100755 --- a/thirdparty/thorvg/update-thorvg.sh +++ b/thirdparty/thorvg/update-thorvg.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -VERSION=0.11.1 +VERSION=0.11.2 cd thirdparty/thorvg/ || true rm -rf AUTHORS LICENSE inc/ src/ *.zip *.tar.gz tmp/ |