diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-01-31 13:32:36 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-01-31 13:32:36 +0000 |
| commit | 9c38287410b305503f921e411eb39686b23ccc42 (patch) | |
| tree | d70c262158a660d96444ce4c97ad29d872642018 /src/render/pass/TexPassElement.cpp | |
| parent | ac5668192ed56c50b5612c7670e397a2128eeba6 (diff) | |
groupbar: various visual improvements
added rounding, round at edges, and indicator height
Diffstat (limited to 'src/render/pass/TexPassElement.cpp')
| -rw-r--r-- | src/render/pass/TexPassElement.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/pass/TexPassElement.cpp b/src/render/pass/TexPassElement.cpp index c7eab292..8b577373 100644 --- a/src/render/pass/TexPassElement.cpp +++ b/src/render/pass/TexPassElement.cpp @@ -13,9 +13,13 @@ void CTexPassElement::draw(const CRegion& damage) { CScopeGuard x = {[]() { // - g_pHyprOpenGL->m_bEndFrame = false; + g_pHyprOpenGL->m_bEndFrame = false; + g_pHyprOpenGL->m_RenderData.clipBox = {}; }}; + if (!data.clipBox.empty()) + g_pHyprOpenGL->m_RenderData.clipBox = data.clipBox; + if (data.replaceProjection) g_pHyprOpenGL->m_RenderData.monitorProjection = *data.replaceProjection; g_pHyprOpenGL->renderTextureInternalWithDamage(data.tex, data.box, data.a, data.damage.empty() ? damage : data.damage, data.round, data.roundingPower, data.syncTimeline, |
