mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix document thumbnails on Retina screens.
This commit is contained in:
parent
eb784c665a
commit
17de379145
2 changed files with 2 additions and 1 deletions
|
@ -577,7 +577,7 @@ void BackgroundRow::updateImage() {
|
|||
if (inverted) {
|
||||
small = Ui::InvertPatternImage(std::move(small));
|
||||
}
|
||||
p.drawImage(QRect(0, 0, size, size), small);
|
||||
p.drawImage(QRect(0, 0, fullsize, fullsize), small);
|
||||
};
|
||||
return Ui::GenerateBackgroundImage(
|
||||
{ fullsize, fullsize },
|
||||
|
|
|
@ -352,6 +352,7 @@ const QPixmap &Image::cached(
|
|||
w = width();
|
||||
} else if (h <= 0) {
|
||||
h = std::max(int(int64(height()) * w / width()), 1) * ratio;
|
||||
w *= ratio;
|
||||
} else {
|
||||
w *= ratio;
|
||||
h *= ratio;
|
||||
|
|
Loading…
Add table
Reference in a new issue