diff --git a/Telegram/SourceFiles/history/history_message.cpp b/Telegram/SourceFiles/history/history_message.cpp index fa73032523..2aa5ab44bc 100644 --- a/Telegram/SourceFiles/history/history_message.cpp +++ b/Telegram/SourceFiles/history/history_message.cpp @@ -1900,7 +1900,6 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) { } if (d.has_duration()) { - d.vduration.v; } } break; diff --git a/Telegram/SourceFiles/window/window_theme.cpp b/Telegram/SourceFiles/window/window_theme.cpp index e4de88fb96..03490c9e6d 100644 --- a/Telegram/SourceFiles/window/window_theme.cpp +++ b/Telegram/SourceFiles/window/window_theme.cpp @@ -419,6 +419,7 @@ void ChatBackground::setImage(int32 id, QImage &&image) { void ChatBackground::setPreparedImage(QImage &&image) { image = std_::move(image).convertToFormat(QImage::Format_ARGB32_Premultiplied); + image.setDevicePixelRatio(cRetinaFactor()); if (_id != kThemeBackground && _id != internal::kTestingThemeBackground) { initColorsFromBackground(image); } diff --git a/Telegram/SourceFiles/window/window_theme_preview.cpp b/Telegram/SourceFiles/window/window_theme_preview.cpp index 5c31b39918..0f9e21101f 100644 --- a/Telegram/SourceFiles/window/window_theme_preview.cpp +++ b/Telegram/SourceFiles/window/window_theme_preview.cpp @@ -411,6 +411,8 @@ void Generator::paintHistoryBackground() { tiled = _current.backgroundTiled; } } + background = std_::move(background).convertToFormat(QImage::Format_ARGB32_Premultiplied); + background.setDevicePixelRatio(cRetinaFactor()); _p->setClipRect(_history); if (tiled) { auto width = background.width();