diff options
author | DeeJayLSP <djlsplays@gmail.com> | 2022-11-29 13:22:05 -0300 |
---|---|---|
committer | DeeJayLSP <djlsplays@gmail.com> | 2022-11-30 09:14:34 -0300 |
commit | 88b7d5c3c5a7ad701d4b1042bfbf23575d064141 (patch) | |
tree | 7fcaec758c3ab0467c564c7faf51489872f1c12c /thirdparty/thorvg/src/lib | |
parent | 6fdbf79046b6404331017c53044507e639efdcc3 (diff) |
Update thorvg to 0.8.3
Diffstat (limited to 'thirdparty/thorvg/src/lib')
-rw-r--r-- | thirdparty/thorvg/src/lib/sw_engine/tvgSwRaster.cpp | 6 | ||||
-rw-r--r-- | thirdparty/thorvg/src/lib/sw_engine/tvgSwRasterTexmapInternal.h | 2 | ||||
-rw-r--r-- | thirdparty/thorvg/src/lib/tvgLoadModule.h | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/thirdparty/thorvg/src/lib/sw_engine/tvgSwRaster.cpp b/thirdparty/thorvg/src/lib/sw_engine/tvgSwRaster.cpp index bf1c10a0c3..ffd74bdd47 100644 --- a/thirdparty/thorvg/src/lib/sw_engine/tvgSwRaster.cpp +++ b/thirdparty/thorvg/src/lib/sw_engine/tvgSwRaster.cpp @@ -22,10 +22,10 @@ #ifdef _WIN32 #include <malloc.h> -#elif __FreeBSD__ - #include<stdlib.h> -#else +#elif defined(__linux__) #include <alloca.h> +#else + #include <stdlib.h> #endif #include "tvgMath.h" diff --git a/thirdparty/thorvg/src/lib/sw_engine/tvgSwRasterTexmapInternal.h b/thirdparty/thorvg/src/lib/sw_engine/tvgSwRasterTexmapInternal.h index f31ea1eb97..50536299b1 100644 --- a/thirdparty/thorvg/src/lib/sw_engine/tvgSwRasterTexmapInternal.h +++ b/thirdparty/thorvg/src/lib/sw_engine/tvgSwRasterTexmapInternal.h @@ -30,7 +30,7 @@ int32_t dw = surface->stride; int32_t x1, x2, x, y, ar, ab, iru, irv, px, ay; int32_t vv = 0, uu = 0; - int32_t minx, maxx; + int32_t minx = INT32_MAX, maxx = INT32_MIN; float dx, u, v, iptr; uint32_t* buf; SwSpan* span = nullptr; //used only when rle based. diff --git a/thirdparty/thorvg/src/lib/tvgLoadModule.h b/thirdparty/thorvg/src/lib/tvgLoadModule.h index bfcc165f31..004983152b 100644 --- a/thirdparty/thorvg/src/lib/tvgLoadModule.h +++ b/thirdparty/thorvg/src/lib/tvgLoadModule.h @@ -36,7 +36,6 @@ public: float vw = 0; float vh = 0; float w = 0, h = 0; //default image size - bool preserveAspect = true; //keep aspect ratio by default. virtual ~LoadModule() {} |