mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
convert the SVG image to QImage::Format_ARGB32_Premultiplied only if it is not in format with alpha channel
since it is painting of image (not painting to image) the performance impact of it not being QImage::Format_ARGB32_Premultiplied is neglectable Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
041b961c0b
commit
ac19ddd82a
1 changed files with 1 additions and 1 deletions
|
@ -2340,7 +2340,7 @@ static QSvgNode *createImageNode(QSvgNode *parent,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image.format() == QImage::Format_ARGB32) {
|
if (image.format() < QImage::Format_ARGB32) {
|
||||||
image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue