Fix document thumbnails on Retina screens.

This commit is contained in:
John Preston 2022-10-19 11:11:12 +04:00
parent ad2f9438a2
commit c86496add1
1 changed files with 2 additions and 1 deletions

View File

@ -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,