mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 20:49:50 +01:00
pass: scale blur regions properly
This commit is contained in:
parent
775111b603
commit
534adad6b1
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ void CRenderPass::simplify() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// expand the region: this area needs to be proper to blur it right.
|
// expand the region: this area needs to be proper to blur it right.
|
||||||
liveBlurRegion.expand(oneBlurRadius() * 2.F);
|
liveBlurRegion.scale(g_pHyprOpenGL->m_RenderData.pMonitor->scale).expand(oneBlurRadius() * 2.F);
|
||||||
|
|
||||||
if (auto infringement = opaque.copy().intersect(liveBlurRegion); !infringement.empty()) {
|
if (auto infringement = opaque.copy().intersect(liveBlurRegion); !infringement.empty()) {
|
||||||
// eh, this is not the correct solution, but it will do...
|
// eh, this is not the correct solution, but it will do...
|
||||||
|
@ -96,7 +96,7 @@ void CRenderPass::simplify() {
|
||||||
const auto BB = el2->element->boundingBox();
|
const auto BB = el2->element->boundingBox();
|
||||||
RASSERT(BB, "No bounding box for an element with live blur is illegal");
|
RASSERT(BB, "No bounding box for an element with live blur is illegal");
|
||||||
|
|
||||||
totalLiveBlurRegion.add(*BB);
|
totalLiveBlurRegion.add(BB->copy().scale(g_pHyprOpenGL->m_RenderData.pMonitor->scale));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue