Fixed to use the correct width and height when creating the NSImage. Issue #605
This commit is contained in:
parent
4c6bb3f7a7
commit
45e50d13d7
|
@ -32,7 +32,7 @@ extension RSImage {
|
|||
#if os(iOS)
|
||||
return RSImage(cgImage: cgImage)
|
||||
#else
|
||||
let size = NSSize(width: scaledMaxPixelSize, height: scaledMaxPixelSize)
|
||||
let size = NSSize(width: cgImage.width, height: cgImage.height)
|
||||
return RSImage(cgImage: cgImage, size: size)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue