effects/blur: Fix blur stripes when rounded window scaling
BUG: 460412
This commit is contained in:
parent
f6d1daf972
commit
8468eeafdd
1 changed files with 2 additions and 2 deletions
|
@ -620,8 +620,8 @@ void BlurEffect::drawWindow(EffectWindow *w, int mask, const QRegion ®ion, Wi
|
|||
for (QRect r : shape) {
|
||||
r.moveTo(pt.x() + (r.x() - pt.x()) * data.xScale() + data.xTranslation(),
|
||||
pt.y() + (r.y() - pt.y()) * data.yScale() + data.yTranslation());
|
||||
r.setWidth(r.width() * data.xScale());
|
||||
r.setHeight(r.height() * data.yScale());
|
||||
r.setWidth(std::ceil(r.width() * data.xScale()));
|
||||
r.setHeight(std::ceil(r.height() * data.yScale()));
|
||||
scaledShape |= r;
|
||||
}
|
||||
shape = scaledShape;
|
||||
|
|
Loading…
Reference in a new issue