From 0f3ec7893d5f4f6ad4a2e3401551c95ce335740a Mon Sep 17 00:00:00 2001 From: Lesiuk Date: Mon, 19 Dec 2022 11:12:26 +0100 Subject: [PATCH] Removed downscaling of 2560px images before displaying them Fixes #2206 --- Telegram/SourceFiles/data/data_photo_media.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Telegram/SourceFiles/data/data_photo_media.cpp b/Telegram/SourceFiles/data/data_photo_media.cpp index 312b672f52..2a2a24620e 100644 --- a/Telegram/SourceFiles/data/data_photo_media.cpp +++ b/Telegram/SourceFiles/data/data_photo_media.cpp @@ -101,14 +101,6 @@ void PhotoMedia::set( QImage image, QByteArray bytes) { const auto index = PhotoSizeIndex(size); - const auto limit = PhotoData::SideLimit(); - if (image.width() > limit || image.height() > limit) { - image = image.scaled( - limit, - limit, - Qt::KeepAspectRatio, - Qt::SmoothTransformation); - } _images[index] = PhotoImage{ .data = std::make_unique(std::move(image)), .bytes = std::move(bytes),