summaryrefslogtreecommitdiff
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-16 12:44:45 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-16 12:44:45 +0200
commit48e5bd96bc71f94f774eb92b00ef560b2f911c73 (patch)
tree3d703572b5c7b68068c712f90ed10238846dd714 /src/render/Renderer.cpp
parentb2650928eac06e3181ad07efe6ec55b2550f89b8 (diff)
Added shadow colors animations and inactive col
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp7
1 files changed, 7 insertions, 0 deletions
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;