From ac8e5fef101138689d88a08abfcf7ffe95f4f3a9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 29 Jul 2022 11:52:56 +0200 Subject: [PATCH] even more damage scaled fixes --- src/render/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index e8ee06f6..ee6f1043 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -671,9 +671,9 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) { wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, m->output, &lx, &ly); pixman_region32_copy(&damageBoxForEach, &damageBox); - pixman_region32_translate(&damageBoxForEach, x, y); + pixman_region32_translate(&damageBoxForEach, x - m->vecPosition.x, y - m->vecPosition.y); wlr_region_scale(&damageBoxForEach, &damageBoxForEach, m->scale); - pixman_region32_translate(&damageBoxForEach, lx, ly); + pixman_region32_translate(&damageBoxForEach, lx + m->vecPosition.x, ly + m->vecPosition.y); wlr_output_damage_add(m->damage, &damageBoxForEach); }