mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Alpha 0.10.23: tiled background fixed for macOS.
This commit is contained in:
parent
c65a280b9d
commit
3da020dffd
3 changed files with 3 additions and 1 deletions
|
@ -1900,7 +1900,6 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
|
||||||
|
|
||||||
}
|
}
|
||||||
if (d.has_duration()) {
|
if (d.has_duration()) {
|
||||||
d.vduration.v;
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
|
@ -419,6 +419,7 @@ void ChatBackground::setImage(int32 id, QImage &&image) {
|
||||||
|
|
||||||
void ChatBackground::setPreparedImage(QImage &&image) {
|
void ChatBackground::setPreparedImage(QImage &&image) {
|
||||||
image = std_::move(image).convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
image = std_::move(image).convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||||
|
image.setDevicePixelRatio(cRetinaFactor());
|
||||||
if (_id != kThemeBackground && _id != internal::kTestingThemeBackground) {
|
if (_id != kThemeBackground && _id != internal::kTestingThemeBackground) {
|
||||||
initColorsFromBackground(image);
|
initColorsFromBackground(image);
|
||||||
}
|
}
|
||||||
|
|
|
@ -411,6 +411,8 @@ void Generator::paintHistoryBackground() {
|
||||||
tiled = _current.backgroundTiled;
|
tiled = _current.backgroundTiled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
background = std_::move(background).convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||||
|
background.setDevicePixelRatio(cRetinaFactor());
|
||||||
_p->setClipRect(_history);
|
_p->setClipRect(_history);
|
||||||
if (tiled) {
|
if (tiled) {
|
||||||
auto width = background.width();
|
auto width = background.width();
|
||||||
|
|
Loading…
Add table
Reference in a new issue