Skip to content

Commit b861de1

Browse files
committed
Fix the issue that CoreGraphics coordinate system on watchOS
1 parent 7819811 commit b861de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImagePDFCoder/Classes/SDImagePDFCoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ - (UIImage *)createBitmapPDFWithData:(nonnull NSData *)data pageNumber:(NSUInteg
203203
SDGraphicsBeginImageContextWithOptions(targetRect.size, NO, 0);
204204
CGContextRef context = SDGraphicsGetCurrentContext();
205205

206-
#if SD_UIKIT
206+
#if SD_UIKIT || SD_WATCH
207207
// Core Graphics coordinate system use the bottom-left, UIkit use the flipped one
208208
CGContextTranslateCTM(context, 0, targetRect.size.height);
209209
CGContextScaleCTM(context, 1, -1);

0 commit comments

Comments
 (0)