Fix the bug that watchOS sd_rotatedImageWithAngle does not works

This commit is contained in:
DreamPiggy 2019-12-29 14:50:54 +08:00
parent 8da50c4a8d
commit 48fe948b8f
1 changed files with 1 additions and 1 deletions

View File

@ -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