Alpha 0.10.23: tiled background fixed for macOS.

This commit is contained in:
John Preston 2017-01-01 21:10:35 +04:00
parent c65a280b9d
commit 3da020dffd
3 changed files with 3 additions and 1 deletions

View File

@ -1900,7 +1900,6 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
}
if (d.has_duration()) {
d.vduration.v;
}
} break;

View File

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

View File

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