Changed from using the main screen scale which might change to using the max screen scale. Issue #396
This commit is contained in:
parent
a0b4237c3c
commit
dd3fde7812
|
@ -28,7 +28,7 @@ extension RSImage {
|
|||
}
|
||||
|
||||
static func scaledForIcon(_ data: Data) -> RSImage? {
|
||||
let scaledMaxPixelSize = Int(ceil(CGFloat(RSImage.maxIconSize) * RSScreen.mainScreenScale))
|
||||
let scaledMaxPixelSize = Int(ceil(CGFloat(RSImage.maxIconSize) * RSScreen.maxScreenScale))
|
||||
guard var cgImage = RSImage.scaleImage(data, maxPixelSize: scaledMaxPixelSize) else {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue