diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/render/pass/Pass.cpp | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
Diffstat (limited to 'src/render/pass/Pass.cpp')
| -rw-r--r-- | src/render/pass/Pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/pass/Pass.cpp b/src/render/pass/Pass.cpp index e4ef6f96..05e83e70 100644 --- a/src/render/pass/Pass.cpp +++ b/src/render/pass/Pass.cpp @@ -29,7 +29,7 @@ void CRenderPass::add(UP<IPassElement>&& el) { void CRenderPass::simplify(bool willBlur, const CRegion& liveBlurRegion) { const auto pMonitor = g_pHyprRenderer->m_renderData.pMonitor; - static auto PDEBUGPASS = CConfigValue<Hyprlang::INT>("debug:pass"); + static auto PDEBUGPASS = CConfigValue<Config::INTEGER>("debug:pass"); // TODO: use precompute blur for instances where there is nothing in between @@ -102,7 +102,7 @@ void CRenderPass::clear() { CRegion CRenderPass::render(const CRegion& damage_) { const auto pMonitor = g_pHyprRenderer->m_renderData.pMonitor; - static auto PDEBUGPASS = CConfigValue<Hyprlang::INT>("debug:pass"); + static auto PDEBUGPASS = CConfigValue<Config::INTEGER>("debug:pass"); // single pass: cache blur results and gather aggregate info bool willBlur = false, willDisableSimplification = false, willPrecomputeBlur = false; @@ -309,8 +309,8 @@ void CRenderPass::renderDebugData() { float CRenderPass::oneBlurRadius() { // TODO: is this exact range correct? - static auto PBLURSIZE = CConfigValue<Hyprlang::INT>("decoration:blur:size"); - static auto PBLURPASSES = CConfigValue<Hyprlang::INT>("decoration:blur:passes"); + static auto PBLURSIZE = CConfigValue<Config::INTEGER>("decoration:blur:size"); + static auto PBLURPASSES = CConfigValue<Config::INTEGER>("decoration:blur:passes"); const auto BLUR_PASSES = std::clamp(*PBLURPASSES, sc<int64_t>(1), sc<int64_t>(8)); |
