mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-20 10:18:25 +00:00
damage: use buffer_damage instead of effective_damage
This commit is contained in:
@@ -1575,8 +1575,7 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y, dou
|
||||
y += CORRECTION.y;
|
||||
}
|
||||
|
||||
CRegion damageBox;
|
||||
wlr_surface_get_effective_damage(pSurface, damageBox.pixman());
|
||||
CRegion damageBox{&pSurface->buffer_damage};
|
||||
if (scale != 1.0)
|
||||
wlr_region_scale(damageBox.pixman(), damageBox.pixman(), scale);
|
||||
|
||||
|
Reference in New Issue
Block a user