From b7ee2336c1d16492d878b1656878de093f91ed81 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 3 Apr 2019 11:03:00 +0800 Subject: [PATCH] Fix rounded corner bug which leads to image upside down --- SDWebImage/UIImage+Transform.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/UIImage+Transform.m b/SDWebImage/UIImage+Transform.m index acf86fb1..cd1c65c7 100644 --- a/SDWebImage/UIImage+Transform.m +++ b/SDWebImage/UIImage+Transform.m @@ -228,7 +228,7 @@ static inline UIColor * SDGetColorFromPixel(Pixel_8888 pixel, CGBitmapInfo bitma CGContextSaveGState(context); [path addClip]; - CGContextDrawImage(context, rect, self.CGImage); + [self drawInRect:rect]; CGContextRestoreGState(context); }