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)
|
#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue