Fix bug #3564 decodedAndScaledDownImageWithImage may not render the image completely when met the specified image size.

This commit is contained in:
yang 2023-07-15 00:30:51 +08:00
parent 633996a807
commit 01336bd3cd
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
sourceTileImageRef = CGImageCreateWithImageInRect( sourceImageRef, sourceTile );
if( y == iterations - 1 && remainder ) {
float dify = destTile.size.height;
destTile.size.height = CGImageGetHeight( sourceTileImageRef ) * imageScale;
destTile.size.height = CGImageGetHeight( sourceTileImageRef ) * imageScale + kDestSeemOverlap;
dify -= destTile.size.height;
destTile.origin.y = MIN(0, destTile.origin.y + dify);
}