mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-13 18:52:54 +00:00
Use premultiplied format for GIF frames.
This commit is contained in:
parent
5ec80238a0
commit
5437215677
@ -35,7 +35,7 @@ QImage createAlignedImage(QSize size) {
|
||||
auto cleanupdata = static_cast<void*>(buffer);
|
||||
auto bufferval = reinterpret_cast<uintptr_t>(buffer);
|
||||
auto alignedbuffer = buffer + ((bufferval % kAlignImageBy) ? (kAlignImageBy - (bufferval % kAlignImageBy)) : 0);
|
||||
return QImage(alignedbuffer, width, height, bytesperline, QImage::Format_ARGB32, alignedImageBufferCleanupHandler, cleanupdata);
|
||||
return QImage(alignedbuffer, width, height, bytesperline, QImage::Format_ARGB32_Premultiplied, alignedImageBufferCleanupHandler, cleanupdata);
|
||||
}
|
||||
|
||||
bool isAlignedImage(const QImage &image) {
|
||||
|
Loading…
Reference in New Issue
Block a user