mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-11 08:48:14 +00:00
Fix stickers panel on Retina screens.
This commit is contained in:
parent
9ce59730ff
commit
24fed8105c
@ -798,6 +798,7 @@ void StickersListWidget::Footer::paintSetIcon(
|
||||
const auto size = frame.size() / cIntRetinaFactor();
|
||||
if (icon.savedFrame.isNull()) {
|
||||
icon.savedFrame = QPixmap::fromImage(frame, Qt::ColorOnly);
|
||||
icon.savedFrame.setDevicePixelRatio(cRetinaFactor());
|
||||
}
|
||||
p.drawImage(
|
||||
QRect(
|
||||
@ -1850,6 +1851,7 @@ void StickersListWidget::paintSticker(Painter &p, Set &set, int y, int section,
|
||||
frame);
|
||||
if (sticker.savedFrame.isNull()) {
|
||||
sticker.savedFrame = QPixmap::fromImage(frame, Qt::ColorOnly);
|
||||
sticker.savedFrame.setDevicePixelRatio(cRetinaFactor());
|
||||
}
|
||||
set.lottiePlayer->unpause(sticker.animated);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user