Fixed out of range alpha in speed boost arrows from media viewer.

This commit is contained in:
23rd
2026-09-15 13:16:50 +03:00
parent aca7dd8b9a
commit e1ef28b03c

View File

@@ -7002,7 +7002,7 @@ void OverlayWidget::paintSpeedBoostContent(
p.setPen(Qt::NoPen);
for (auto i = 0; i < 2; ++i) {
const auto phase = _speedBoostPhase + i * 0.17;
const auto pulse = std::sin(phase * M_PI) / 2. + 1.;
const auto pulse = std::sin(phase * M_PI) / 2. + 0.5;
const auto alpha = opacity * (0.2 + 0.75 * pulse);
p.setBrush(anim::with_alpha(st::mediaviewSaveMsgFg->c, alpha));
const auto ax = arrowsX + i * arrowStep;