mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Fixed render of scene from photo editor for grayscaled images.
Fixed #23889.
This commit is contained in:
@@ -18,6 +18,11 @@ QImage ImageModified(QImage image, const PhotoModifications &mods) {
|
|||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
if (mods.paint) {
|
if (mods.paint) {
|
||||||
|
if (image.format() != QImage::Format_ARGB32_Premultiplied) {
|
||||||
|
image = image.convertToFormat(
|
||||||
|
QImage::Format_ARGB32_Premultiplied);
|
||||||
|
}
|
||||||
|
|
||||||
Painter p(&image);
|
Painter p(&image);
|
||||||
PainterHighQualityEnabler hq(p);
|
PainterHighQualityEnabler hq(p);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user