mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Fixed first animation of album thumbs in SendFilesBox on Retina screens.
This commit is contained in:
parent
ec9fa00f46
commit
a429500b57
1 changed files with 1 additions and 1 deletions
|
@ -243,6 +243,7 @@ void AlbumThumbnail::prepareCache(QSize size, int shrink) {
|
|||
if (_albumCache.width() < cacheSize.width()
|
||||
|| _albumCache.height() < cacheSize.height()) {
|
||||
_albumCache = QImage(cacheSize, QImage::Format_ARGB32_Premultiplied);
|
||||
_albumCache.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
}
|
||||
_albumCache.fill(Qt::transparent);
|
||||
{
|
||||
|
@ -257,7 +258,6 @@ void AlbumThumbnail::prepareCache(QSize size, int shrink) {
|
|||
ImageRoundRadius::Large,
|
||||
_albumCorners,
|
||||
QRect(QPoint(), size * style::DevicePixelRatio()));
|
||||
_albumCache.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
}
|
||||
|
||||
void AlbumThumbnail::drawSimpleFrame(Painter &p, QRect to, QSize size) const {
|
||||
|
|
Loading…
Add table
Reference in a new issue