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:
Hermet Park 2024-07-26 12:09:44 +09:00
parent 57e0d5b448
commit 267a467dab
2 changed files with 3 additions and 3 deletions

View file

@ -842,7 +842,7 @@ static bool _scaledRleImage(SwSurface* surface, const SwImage* image, const Matr
Matrix itransform;
if (transform) {
if (!mathInverse(transform, &itransform)) return false;
if (!mathInverse(transform, &itransform)) return true;
} else mathIdentity(&itransform);
if (_compositing(surface)) {
@ -1202,7 +1202,7 @@ static bool _scaledImage(SwSurface* surface, const SwImage* image, const Matrix*
Matrix itransform;
if (transform) {
if (!mathInverse(transform, &itransform)) return false;
if (!mathInverse(transform, &itransform)) return true;
} else mathIdentity(&itransform);
if (_compositing(surface)) {

View file

@ -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. */