Fixed to use the correct width and height when creating the NSImage. Issue #605

This commit is contained in:
Maurice Parker 2019-04-13 15:05:45 -05:00
parent 4c6bb3f7a7
commit 45e50d13d7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ extension RSImage {
#if os(iOS) #if os(iOS)
return RSImage(cgImage: cgImage) return RSImage(cgImage: cgImage)
#else #else
let size = NSSize(width: scaledMaxPixelSize, height: scaledMaxPixelSize) let size = NSSize(width: cgImage.width, height: cgImage.height)
return RSImage(cgImage: cgImage, size: size) return RSImage(cgImage: cgImage, size: size)
#endif #endif