mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Create ImagePtr-s using a factory method.
This commit is contained in:
@@ -94,7 +94,7 @@ BackgroundBox::Inner::Inner(QWidget *parent) : TWidget(parent)
|
||||
void BackgroundBox::Inner::gotWallpapers(const MTPVector<MTPWallPaper> &result) {
|
||||
App::WallPapers wallpapers;
|
||||
|
||||
auto oldBackground = ImagePtr(qsl(":/gui/art/bg_initial.jpg"));
|
||||
auto oldBackground = Images::Create(qsl(":/gui/art/bg_initial.jpg"), "JPG");
|
||||
wallpapers.push_back(App::WallPaper(Window::Theme::kInitialBackground, oldBackground, oldBackground));
|
||||
auto &v = result.v;
|
||||
for_const (auto &w, v) {
|
||||
|
Reference in New Issue
Block a user