mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Check chat background read result.
This commit is contained in:
@@ -909,12 +909,17 @@ QImage PrepareImageForTiled(const QImage &prepared) {
|
||||
const QString &path,
|
||||
const QByteArray &content,
|
||||
bool gzipSvg) {
|
||||
return Images::Read({
|
||||
auto result = Images::Read({
|
||||
.path = path,
|
||||
.content = content,
|
||||
.maxSize = QSize(kMaxSize, kMaxSize),
|
||||
.gzipSvg = gzipSvg,
|
||||
}).image;
|
||||
if (result.isNull()) {
|
||||
result = QImage(1, 1, QImage::Format_ARGB32_Premultiplied);
|
||||
result.fill(Qt::black);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
QImage GenerateBackgroundImage(
|
||||
|
||||
Reference in New Issue
Block a user