2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Removed App::pixmapFromImageInPlace.

This commit is contained in:
23rd
2021-05-07 17:33:53 +03:00
parent 7bcb1fc8b2
commit a631a28092
36 changed files with 152 additions and 108 deletions

View File

@@ -44,7 +44,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/text/format_values.h"
#include "ui/text/text_options.h"
#include "ui/cached_round_corners.h"
#include "app.h"
#include "ui/ui_utility.h"
namespace Overview {
namespace Layout {
@@ -368,7 +368,7 @@ void Photo::setPixFrom(not_null<Image*> image) {
delegate()->unregisterHeavyItem(this);
}
_pix = App::pixmapFromImageInPlace(std::move(img));
_pix = Ui::PixmapFromImage(std::move(img));
}
void Photo::ensureDataMediaCreated() const {
@@ -459,7 +459,7 @@ void Video::paint(Painter &p, const QRect &clip, TextSelection selection, const
}
img.setDevicePixelRatio(cRetinaFactor());
_pix = App::pixmapFromImageInPlace(std::move(img));
_pix = Ui::PixmapFromImage(std::move(img));
_pixBlurred = !(thumbnail || good);
}