AvatarStoryCircle: Fix stroke width on high DPR (#4171)

This commit is contained in:
Alexander Zinchuk 2024-01-12 13:00:43 +01:00
parent 29f53a01b7
commit f3452bae32

View File

@ -150,7 +150,7 @@ export function drawGradientCircle({
segmentsCount = SEGMENTS_MAX;
}
const strokeModifier = Math.max(Math.max(size - SIZES.large * dpr, 0) / REM / 1.5, 1);
const strokeModifier = Math.max(Math.max(size - SIZES.large * dpr, 0) / dpr / REM / 1.5, 1) * dpr;
const ctx = canvas.getContext('2d');
if (!ctx) {