From 769107b7aabecc93dfd4ad92a361d01cdc3d848d Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 27 Dec 2019 18:04:36 +0000 Subject: [PATCH] damage: Grow hint box after alignment --- src/damage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/damage.c b/src/damage.c index e60d876..d8c7682 100644 --- a/src/damage.c +++ b/src/damage.c @@ -61,6 +61,9 @@ int check_damage_linear(struct pixman_region16* damage, int x_start = ALIGN_DOWN(x_hint, TILE_SIDE_LENGTH); int y_start = ALIGN_DOWN(y_hint, TILE_SIDE_LENGTH); + width_hint += x_hint - x_start; + height_hint += y_hint - y_start; + for (int y = y_start; y < y_start + height_hint; y += TILE_SIDE_LENGTH) { int tile_height = MIN(TILE_SIDE_LENGTH, height - y);