mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-06-20 18:24:43 +00:00
b1aab0839c
drawRectsImageContent's modern path computed nextRadius and prevRadius as min(outerRadius, floor(|Δx| * 0.5)). When |Δx| < 2 the floor produces 0 and the addArc call becomes a no-op, leaving an unsmoothed corner at the stair-step. Replace floor with ceil so any non-zero edge mismatch rounds up to at least 1 px. Exact-equality cases (Δx == 0) are unaffected — they take the else branch with a straight addLine. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>