mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine: rectified the image raster return value.
Return the raster image as a success unless it fails due to any problematic condition. The changed cases are just invisible condition of the images.
This commit is contained in:
parent
b388bf06d5
commit
f4364ddb86
2 changed files with 3 additions and 3 deletions
|
@ -842,7 +842,7 @@ static bool _scaledRleImage(SwSurface* surface, const SwImage* image, const Matr
|
|||
Matrix itransform;
|
||||
|
||||
if (transform) {
|
||||
if (!inverse(transform, &itransform)) return false;
|
||||
if (!inverse(transform, &itransform)) return true;
|
||||
} else identity(&itransform);
|
||||
|
||||
if (_compositing(surface)) {
|
||||
|
@ -1202,7 +1202,7 @@ static bool _scaledImage(SwSurface* surface, const SwImage* image, const Matrix*
|
|||
Matrix itransform;
|
||||
|
||||
if (transform) {
|
||||
if (!inverse(transform, &itransform)) return false;
|
||||
if (!inverse(transform, &itransform)) return true;
|
||||
} else identity(&itransform);
|
||||
|
||||
if (_compositing(surface)) {
|
||||
|
|
|
@ -1092,7 +1092,7 @@ static bool _rasterTexmapPolygon(SwSurface* surface, const SwImage* image, const
|
|||
}
|
||||
|
||||
//Exceptions: No dedicated drawing area?
|
||||
if ((!image->rle && !region) || (image->rle && image->rle->size == 0)) return false;
|
||||
if ((!image->rle && !region) || (image->rle && image->rle->size == 0)) return true;
|
||||
|
||||
/* Prepare vertices.
|
||||
shift XY coordinates to match the sub-pixeling technique. */
|
||||
|
|
Loading…
Add table
Reference in a new issue