mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Use 0.5pt borders on @2x displays
This commit is contained in:
parent
9073516dbd
commit
d2fb7f07e5
@ -176,7 +176,12 @@ public func messageBubbleImage(maxCornerRadius: CGFloat, minCornerRadius: CGFloa
|
||||
context.translateBy(x: additionalInset + strokeInset, y: additionalInset + strokeInset)
|
||||
|
||||
context.setStrokeColor(UIColor.black.cgColor)
|
||||
let borderWidth: CGFloat = UIScreenPixel * 2.0
|
||||
let borderWidth: CGFloat
|
||||
if abs(UIScreenPixel - 0.5) < CGFloat.ulpOfOne {
|
||||
borderWidth = UIScreenPixel
|
||||
} else {
|
||||
borderWidth = UIScreenPixel * 2.0
|
||||
}
|
||||
context.setLineWidth(borderWidth)
|
||||
|
||||
let borderOffset: CGFloat = borderWidth / 2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user