Changed from using the main screen scale which might change to using the max screen scale. Issue #396

This commit is contained in:
Maurice Parker 2020-03-14 15:40:40 -05:00
parent a0b4237c3c
commit dd3fde7812
1 changed files with 1 additions and 1 deletions

View File

@ -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
}