even more damage scaled fixes

This commit is contained in:
vaxerski 2022-07-29 11:52:56 +02:00
parent 429a9bc6c3
commit ac8e5fef10

View file

@ -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); wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, m->output, &lx, &ly);
pixman_region32_copy(&damageBoxForEach, &damageBox); 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); 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); wlr_output_damage_add(m->damage, &damageBoxForEach);
} }