From dd3fde7812577aa1b61d77ab0b30a8ba97c27ed4 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 14 Mar 2020 15:40:40 -0500 Subject: [PATCH] Changed from using the main screen scale which might change to using the max screen scale. Issue #396 --- Shared/Extensions/RSImage-Extensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Extensions/RSImage-Extensions.swift b/Shared/Extensions/RSImage-Extensions.swift index 30a3d570b..e6f515270 100644 --- a/Shared/Extensions/RSImage-Extensions.swift +++ b/Shared/Extensions/RSImage-Extensions.swift @@ -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 }