From 48fe948b8fdc3e8771f946a5f3e5d5cd616449e1 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 29 Dec 2019 14:50:54 +0800 Subject: [PATCH] Fix the bug that watchOS sd_rotatedImageWithAngle does not works --- SDWebImage/Core/UIImage+Transform.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/UIImage+Transform.m b/SDWebImage/Core/UIImage+Transform.m index 54d3cef9..4565c2de 100644 --- a/SDWebImage/Core/UIImage+Transform.m +++ b/SDWebImage/Core/UIImage+Transform.m @@ -270,7 +270,7 @@ static inline UIColor * SDGetColorFromPixel(Pixel_8888 pixel, CGBitmapInfo bitma CGContextSetAllowsAntialiasing(context, true); CGContextSetInterpolationQuality(context, kCGInterpolationHigh); CGContextTranslateCTM(context, +(newRect.size.width * 0.5), +(newRect.size.height * 0.5)); -#if SD_UIKIT +#if SD_UIKIT || SD_WATCH // Use UIKit coordinate system counterclockwise (⟲) CGContextRotateCTM(context, -angle); #else