mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 11:25:58 +01:00
surface damage fixes 2
This commit is contained in:
parent
3f62a386bf
commit
0b0cd85085
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) {
|
||||||
double lx = 0, ly = 0;
|
double lx = 0, ly = 0;
|
||||||
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);
|
||||||
|
|
||||||
wlr_region_scale(&damageBox, &damageBoxForEach, m->scale);
|
wlr_region_scale(&damageBoxForEach, &damageBox, m->scale);
|
||||||
pixman_region32_translate(&damageBoxForEach, lx, ly);
|
pixman_region32_translate(&damageBoxForEach, lx, ly);
|
||||||
|
|
||||||
wlr_output_damage_add(m->damage, &damageBox);
|
wlr_output_damage_add(m->damage, &damageBox);
|
||||||
|
|
Loading…
Reference in a new issue