From 7fedf24d9ed7930a83eab45e410b05642285b68d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 30 Apr 2017 19:58:31 +0300 Subject: [PATCH] Fix video message and sticker reply preview on Retina. Wrong preview image size was a reason for image resize before drawing the preview and it caused black background, not transparent. --- Telegram/SourceFiles/structs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/structs.cpp b/Telegram/SourceFiles/structs.cpp index 5bfe88dab1..1e851fa5ac 100644 --- a/Telegram/SourceFiles/structs.cpp +++ b/Telegram/SourceFiles/structs.cpp @@ -1758,7 +1758,7 @@ ImagePtr DocumentData::makeReplyPreview() { auto thumbSize = (w > h) ? QSize(w * st::msgReplyBarSize.height() / h, st::msgReplyBarSize.height()) : QSize(st::msgReplyBarSize.height(), h * st::msgReplyBarSize.height() / w); thumbSize *= cIntRetinaFactor(); auto options = Images::Option::Smooth | (isRoundVideo() ? Images::Option::Circled : Images::Option::None); - auto outerSize = st::msgReplyBarSize.height() * cIntRetinaFactor(); + auto outerSize = st::msgReplyBarSize.height(); auto image = thumb->pixNoCache(thumbSize.width(), thumbSize.height(), options, outerSize, outerSize); replyPreview = ImagePtr(image, "PNG"); } else {