mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix document thumbnails on Retina screens.
This commit is contained in:
parent
ad2f9438a2
commit
c86496add1
1 changed files with 2 additions and 1 deletions
|
@ -736,7 +736,8 @@ void Document::validateThumbnail(
|
|||
}
|
||||
const auto small = (rounding == Ui::BubbleRounding());
|
||||
auto image = normal ? normal : blurred;
|
||||
auto thumbnail = Images::Prepare(image->original(), thumbed->thumbw, {
|
||||
const auto imageWidth = thumbed->thumbw * style::DevicePixelRatio();
|
||||
auto thumbnail = Images::Prepare(image->original(), imageWidth, {
|
||||
.options = (normal ? Images::Option() : Images::Option::Blur)
|
||||
| (small ? Images::Option::RoundSmall : Images::Option()),
|
||||
.outer = outer,
|
||||
|
|
Loading…
Add table
Reference in a new issue