1
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-04-01 14:50:24 +00:00

Fix video grouped thumb on Retina displays.

This commit is contained in:
John Preston 2017-12-27 22:16:26 +03:00
parent 1a115cc7e5
commit f2d11e7432

View File

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