From f2d11e743298aef0d3d89713904e2044f9bd6ec4 Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Wed, 27 Dec 2017 22:16:26 +0300 Subject: [PATCH] Fix video grouped thumb on Retina displays. --- Telegram/SourceFiles/history/history_media_types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index 010a8e016..1cb438856 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -1264,8 +1264,8 @@ void HistoryVideo::validateGroupedCache( const auto pixSize = Ui::GetImageScaleSizeForGeometry( { originalWidth, originalHeight }, { width, height }); - const auto pixWidth = pixSize.width(); - const auto pixHeight = pixSize.height(); + const auto pixWidth = pixSize.width() * cIntRetinaFactor(); + const auto pixHeight = pixSize.height() * cIntRetinaFactor(); const auto &image = _data->thumb; *cacheKey = key;