From 35e5c2329b0a59807d5085dd9dd426a65eb15fbf Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 Feb 2019 15:32:32 +0300 Subject: [PATCH] Fix wall paper preview on Retina. --- .../SourceFiles/history/media/history_media_wall_paper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp b/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp index daac11db4..a7582b3da 100644 --- a/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp +++ b/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp @@ -214,8 +214,8 @@ void HistoryWallPaper::prepareThumbnailFrom( } original = Images::prepare( std::move(original), - _pixw, - (_pixw * th) / tw, + _pixw * cIntRetinaFactor(), + ((_pixw * th) / tw) * cIntRetinaFactor(), options, _pixw, _pixh);