mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: do not guess the mask color in FrameSvg::mask()
using the mask created by QPixmap::mask() is much more reliable way to get one, fixes masking in case compositor is not active for example side note: feels good to finally land the fix for masking Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a3d14ed9f8
commit
aef479ab03
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ QRegion FrameSvg::mask() const
|
|||
if (frame->cachedMasks.count() > frame->MAX_CACHED_MASKS) {
|
||||
frame->cachedMasks.clear();
|
||||
}
|
||||
frame->cachedMasks.insert(id, QRegion(QBitmap(d->alphaMask().alphaChannel().createMaskFromColor(Qt::black))));
|
||||
frame->cachedMasks.insert(id, QRegion(d->alphaMask().mask()));
|
||||
}
|
||||
return frame->cachedMasks[id];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue