From 48e5bd96bc71f94f774eb92b00ef560b2f911c73 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 16 Jul 2022 12:44:45 +0200 Subject: Added shadow colors animations and inactive col --- src/render/Renderer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render/Renderer.cpp') diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index f9f7d0e3..e3e67a65 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -693,6 +693,13 @@ void CHyprRenderer::damageBox(const int& x, const int& y, const int& w, const in damageBox(&box); } +void CHyprRenderer::damageRegion(pixman_region32_t* rg) { + PIXMAN_DAMAGE_FOREACH(rg) { + const auto RECT = RECTSARR[i]; + damageBox(RECT.x1, RECT.y1, RECT.x2 - RECT.x1, RECT.y2 - RECT.y1); + } +} + void CHyprRenderer::renderDragIcon(SMonitor* pMonitor, timespec* time) { if (!(g_pInputManager->m_sDrag.dragIcon && g_pInputManager->m_sDrag.iconMapped && g_pInputManager->m_sDrag.dragIcon->surface)) return; -- cgit v1.2.3