mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Refactor image transformation interfaces.
This commit is contained in:
@@ -36,7 +36,7 @@ using Data::kPhotoSizeCount;
|
||||
const Data::CloudFile &file) {
|
||||
return (v::is<WebFileLocation>(file.location.file().data)
|
||||
&& image.format() == QImage::Format_ARGB32)
|
||||
? Images::prepareOpaque(std::move(image))
|
||||
? Images::Opaque(std::move(image))
|
||||
: image;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user