From 71d4b6469165d63090d8f53da85a7cce342c7d09 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 30 Jan 2022 00:33:42 +0300 Subject: [PATCH] Fix link / forward preview on Retina screen. Regression was introduced in 3ff17a8789. --- Telegram/SourceFiles/ui/image/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp index 2c49cc587..6b2d806cb 100644 --- a/Telegram/SourceFiles/ui/image/image.cpp +++ b/Telegram/SourceFiles/ui/image/image.cpp @@ -349,7 +349,7 @@ const QPixmap &Image::cached( bool single) const { const auto ratio = style::DevicePixelRatio(); if (w <= 0 || !width() || !height()) { - w = width() * ratio; + w = width(); } else if (h <= 0) { h = std::max(int(int64(height()) * w / width()), 1) * ratio; } else {