Fixed updating of emoji status from TopBar in Premium Settings for user.

Regression was introduced in 47b32898f5.
This commit is contained in:
23rd 2022-09-27 22:10:40 +03:00
parent 62b624c390
commit 9c3173e4bb
2 changed files with 3 additions and 3 deletions

View file

@ -580,7 +580,7 @@ void EmojiStatusTopBar::paint(QPainter &p) {
crl::now(),
_paused);
p.drawImage(_rect, frame.image);
p.drawImage(_rect.toRect(), frame.image);
if (!_paused) {
_player->markFrameShown();
}
@ -675,7 +675,7 @@ TopBarUser::TopBarUser(
if (document) {
_emojiStatus = std::make_unique<EmojiStatusTopBar>(
document,
[=](QRect r) { update(std::move(r)); },
[=](QRect r) { _content->update(std::move(r)); },
HistoryView::Sticker::EmojiSize());
_imageStar = QImage();
} else {

View file

@ -24,7 +24,7 @@ MiniStars::MiniStars(Fn<void(const QRect &r)> updateCallback, bool opaque)
Interval{ 180 + 15, 50 },
Interval{ -15 - 50, 50 },
})
, _lifeLength({ 150, 200 })
, _lifeLength({ 150 / 5, 200 / 5 })
, _deathTime({ 1500, 2000 })
, _size({ 5, 10 })
, _alpha({ opaque ? 100 : 40, opaque ? 100 : 60 })