mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()
|
if (_albumCache.width() < cacheSize.width()
|
||||||
|| _albumCache.height() < cacheSize.height()) {
|
|| _albumCache.height() < cacheSize.height()) {
|
||||||
_albumCache = QImage(cacheSize, QImage::Format_ARGB32_Premultiplied);
|
_albumCache = QImage(cacheSize, QImage::Format_ARGB32_Premultiplied);
|
||||||
|
_albumCache.setDevicePixelRatio(style::DevicePixelRatio());
|
||||||
}
|
}
|
||||||
_albumCache.fill(Qt::transparent);
|
_albumCache.fill(Qt::transparent);
|
||||||
{
|
{
|
||||||
|
@ -257,7 +258,6 @@ void AlbumThumbnail::prepareCache(QSize size, int shrink) {
|
||||||
ImageRoundRadius::Large,
|
ImageRoundRadius::Large,
|
||||||
_albumCorners,
|
_albumCorners,
|
||||||
QRect(QPoint(), size * style::DevicePixelRatio()));
|
QRect(QPoint(), size * style::DevicePixelRatio()));
|
||||||
_albumCache.setDevicePixelRatio(style::DevicePixelRatio());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AlbumThumbnail::drawSimpleFrame(Painter &p, QRect to, QSize size) const {
|
void AlbumThumbnail::drawSimpleFrame(Painter &p, QRect to, QSize size) const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue