Skip to content

Commit

Permalink
pass: scale blur regions properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 27, 2024
1 parent 775111b commit 534adad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/pass/Pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void CRenderPass::simplify() {
}

// 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()) {
// eh, this is not the correct solution, but it will do...
Expand All @@ -96,7 +96,7 @@ void CRenderPass::simplify() {
const auto BB = el2->element->boundingBox();
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));
}
}
}
Expand Down

0 comments on commit 534adad

Please sign in to comment.