mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Alpha 0.10.23: tiled background fixed for macOS.
This commit is contained in:
parent
c65a280b9d
commit
3da020dffd
@ -1900,7 +1900,6 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
|
||||
|
||||
}
|
||||
if (d.has_duration()) {
|
||||
d.vduration.v;
|
||||
}
|
||||
} break;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user