diff options
author | vaxerski <[email protected]> | 2022-07-29 11:52:56 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-07-29 11:52:56 +0200 |
commit | ac8e5fef101138689d88a08abfcf7ffe95f4f3a9 (patch) | |
tree | b0333e8d4b32eef4748fe3a30f3127a748a02f97 | |
parent | 429a9bc6c3ce9ea932bc989856e1c51582c44bf9 (diff) | |
download | Hyprland-ac8e5fef101138689d88a08abfcf7ffe95f4f3a9.tar.gz Hyprland-ac8e5fef101138689d88a08abfcf7ffe95f4f3a9.zip |
even more damage scaled fixes
-rw-r--r-- | src/render/Renderer.cpp | 4 |
1 files 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); } |