mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Boxes redesigned. Common groups moved to Shared Media.
Also transparent images sending fixed.
This commit is contained in:
@@ -279,8 +279,9 @@ QImage prepareOpaque(QImage image) {
|
||||
for (auto y = 0; y != height; ++y) {
|
||||
for (auto x = 0; x != width; ++x) {
|
||||
auto components = anim::shifted(*ints);
|
||||
*ints = anim::unshifted(components * 256 + bg * (256 - anim::getAlpha(components)));
|
||||
*ints++ = anim::unshifted(components * 256 + bg * (256 - anim::getAlpha(components)));
|
||||
}
|
||||
ints += addPerLine;
|
||||
}
|
||||
}
|
||||
return std_::move(image);
|
||||
|
Reference in New Issue
Block a user