aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-18 13:08:49 +0200
committervaxerski <[email protected]>2022-05-18 13:08:49 +0200
commitc2922b6b0941fc5fd4e82877df179e14cc2d3f93 (patch)
treecf830547d2a38124e3e4cbbde53a3dcc451f1ae9
parent244be92d111dfb36ac1b3abd8388d729be17bbbc (diff)
downloadHyprland-c2922b6b0941fc5fd4e82877df179e14cc2d3f93.tar.gz
Hyprland-c2922b6b0941fc5fd4e82877df179e14cc2d3f93.zip
fix surface effective damage scale
-rw-r--r--src/render/Renderer.cpp1
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);
}