mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine SwRaster: Initialize uninitialized transform value
This commit is contained in:
parent
a6781734dc
commit
90fa26b7bb
1 changed files with 4 additions and 0 deletions
|
@ -499,7 +499,9 @@ static bool _rasterScaledRleRGBAImage(SwSurface* surface, const SwImage* image,
|
||||||
static bool _scaledRleRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
|
static bool _scaledRleRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
|
||||||
{
|
{
|
||||||
Matrix itransform;
|
Matrix itransform;
|
||||||
|
|
||||||
if (transform && !mathInverse(transform, &itransform)) return false;
|
if (transform && !mathInverse(transform, &itransform)) return false;
|
||||||
|
else mathIdentity(&itransform);
|
||||||
|
|
||||||
auto halfScale = _halfScale(image->scale);
|
auto halfScale = _halfScale(image->scale);
|
||||||
|
|
||||||
|
@ -844,7 +846,9 @@ static bool _rasterScaledRGBAImage(SwSurface* surface, const SwImage* image, con
|
||||||
static bool _scaledRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
|
static bool _scaledRGBAImage(SwSurface* surface, const SwImage* image, const Matrix* transform, const SwBBox& region, uint32_t opacity)
|
||||||
{
|
{
|
||||||
Matrix itransform;
|
Matrix itransform;
|
||||||
|
|
||||||
if (transform && !mathInverse(transform, &itransform)) return false;
|
if (transform && !mathInverse(transform, &itransform)) return false;
|
||||||
|
else mathIdentity(&itransform);
|
||||||
|
|
||||||
auto halfScale = _halfScale(image->scale);
|
auto halfScale = _halfScale(image->scale);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue