diff options
author | vaxerski <[email protected]> | 2022-05-18 13:08:49 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-05-18 13:08:49 +0200 |
commit | c2922b6b0941fc5fd4e82877df179e14cc2d3f93 (patch) | |
tree | cf830547d2a38124e3e4cbbde53a3dcc451f1ae9 | |
parent | 244be92d111dfb36ac1b3abd8388d729be17bbbc (diff) | |
download | Hyprland-c2922b6b0941fc5fd4e82877df179e14cc2d3f93.tar.gz Hyprland-c2922b6b0941fc5fd4e82877df179e14cc2d3f93.zip |
fix surface effective damage scale
-rw-r--r-- | src/render/Renderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index aa8d0cd2..02f7482c 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -468,6 +468,7 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) { double lx = 0, ly = 0; wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, m.output, &lx, &ly); pixman_region32_translate(&damageBox, lx, ly); + wlr_region_scale(&damageBox, &damageBox, m.scale); wlr_output_damage_add(m.damage, &damageBox); pixman_region32_translate(&damageBox, -lx, -ly); } |