mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Fix wallpaper pattern size
This commit is contained in:
parent
a76f5843d4
commit
fb0598b2e0
@ -553,7 +553,7 @@ private func patternWallpaperImageInternal(fullSizeData: Data?, fullSizeComplete
|
|||||||
var image: UIImage?
|
var image: UIImage?
|
||||||
if let fullSizeData = fullSizeData {
|
if let fullSizeData = fullSizeData {
|
||||||
if mode == .screen {
|
if mode == .screen {
|
||||||
image = renderPreparedImage(fullSizeData, CGSize(width: size.width * context.scale, height: size.height * context.scale), .black, 1.0, displayMode != .aspectFill)
|
image = renderPreparedImage(fullSizeData, CGSize(width: size.width * context.scale, height: size.height * context.scale), .black, 1.0, displayMode == .aspectFit)
|
||||||
} else {
|
} else {
|
||||||
image = UIImage(data: fullSizeData)
|
image = UIImage(data: fullSizeData)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user