Browse Source

Allow compiling for macOS too

onevcat 1 year ago
parent
commit
9054a29122
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Image/ImageDrawing.swift

+ 2 - 2
Sources/Image/ImageDrawing.swift

@@ -349,8 +349,8 @@ extension KingfisherWrapper where Base: KFCrossPlatformImage {
             in: CGRect(
             in: CGRect(
                 x: 0,
                 x: 0,
                 y: 0,
                 y: 0,
-                width: size.width * base.scale,
-                height: size.height * base.scale
+                width: size.width * scale,
+                height: size.height * scale
             )
             )
         )
         )
         var inBuffer = createEffectBuffer(inputContext)
         var inBuffer = createEffectBuffer(inputContext)