mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
Revert "plasma: simplify alpha mask creation"
This reverts commit 61212b4527
.
This commit is contained in:
parent
6eab6c564d
commit
bc1e1c3eb4
1 changed files with 1 additions and 3 deletions
|
@ -462,9 +462,7 @@ QRegion FrameSvg::mask() const
|
|||
if (frame->cachedMasks.count() > frame->MAX_CACHED_MASKS) {
|
||||
frame->cachedMasks.clear();
|
||||
}
|
||||
|
||||
const QPixmap pixmap = d->alphaMask();
|
||||
frame->cachedMasks.insert(id, QRegion(pixmap.createMaskFromColor(Qt::black)));
|
||||
frame->cachedMasks.insert(id, QRegion(QBitmap(d->alphaMask().alphaChannel().createMaskFromColor(Qt::black))));
|
||||
}
|
||||
return frame->cachedMasks[id];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue