damage: Grow hint box after alignment

tight-png
Andri Yngvason 2019-12-27 18:04:36 +00:00
parent 00450e0c9d
commit 769107b7aa
1 changed files with 3 additions and 0 deletions

View File

@ -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);