summaryrefslogtreecommitdiff
path: root/src/render/pass/Pass.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-12-27 17:49:05 +0100
committervaxerski <vaxry@vaxry.net>2024-12-27 17:49:05 +0100
commit534adad6b1940fcf0929a59be62dc78e5effaccc (patch)
tree69c9d7d0dda2e7d193be5720ce7d5c0bd351d9cd /src/render/pass/Pass.cpp
parent775111b6032185c9ef164d7ba1417a875c1d0287 (diff)
pass: scale blur regions properly
Diffstat (limited to 'src/render/pass/Pass.cpp')
-rw-r--r--src/render/pass/Pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/pass/Pass.cpp b/src/render/pass/Pass.cpp
index 69a12293..c5c60be6 100644
--- a/src/render/pass/Pass.cpp
+++ b/src/render/pass/Pass.cpp
@@ -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...
@@ -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));
}
}
}