2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Load fullres images of new wallpapers.

This commit is contained in:
John Preston
2019-01-16 16:25:29 +04:00
parent 04350af96f
commit 0f9c2a62fe
16 changed files with 290 additions and 168 deletions

View File

@@ -389,7 +389,7 @@ void ChatBackground::start() {
}
}
void ChatBackground::setImage(int32 id, QImage &&image) {
void ChatBackground::setImage(WallPaperId id, QImage &&image) {
auto needResetAdjustable = (id == kDefaultBackground)
&& (_id != kDefaultBackground)
&& !nightMode()
@@ -528,7 +528,7 @@ void ChatBackground::adjustPaletteUsingBackground(const QImage &img) {
}
}
int32 ChatBackground::id() const {
WallPaperId ChatBackground::id() const {
return _id;
}