From bfb03621c26ed19d067309790b8efb40c2b75657 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 18 Apr 2021 17:21:22 +0300 Subject: [PATCH] Fixed GIFs in EditCaptionBox on Retina screens. --- Telegram/SourceFiles/boxes/edit_caption_box.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index 1a517ca21..fea44c1c9 100644 --- a/Telegram/SourceFiles/boxes/edit_caption_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_caption_box.cpp @@ -486,13 +486,13 @@ void EditCaptionBox::handleStreamingError(Error &&error) { } void EditCaptionBox::streamingReady(Information &&info) { - const auto calculateGifDimensions = [&]() { + const auto calculateGifDimensions = [&] { const auto scaled = QSize( info.video.size.width(), info.video.size.height() ).scaled( - st::sendMediaPreviewSize * cIntRetinaFactor(), - st::confirmMaxHeight * cIntRetinaFactor(), + st::sendMediaPreviewSize, + st::confirmMaxHeight, Qt::KeepAspectRatio); _thumbw = _gifw = scaled.width(); _thumbh = _gifh = scaled.height();