From 9f67b47e8c47810a0d7d99beb568d4db49c06f6b Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 13 Oct 2019 10:05:36 +0000 Subject: [PATCH] damage: Remove vestigial y_inversion code --- src/damage.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/damage.c b/src/damage.c index c94f9c4..1cb04c7 100644 --- a/src/damage.c +++ b/src/damage.c @@ -56,8 +56,6 @@ int check_damage_linear(struct pixman_region16 *damage, int width = fb0->width; int height = fb0->height; - bool y_invert = false; - assert(x_hint + width_hint <= width); assert(y_hint + height_hint <= height); @@ -72,8 +70,7 @@ int check_damage_linear(struct pixman_region16 *damage, x += TILE_SIDE_LENGTH) { int tile_width = MIN(TILE_SIDE_LENGTH, width - x); - int offset = y_invert ? x + (height - y - tile_height) * width - : x + y * width; + int offset = x + y * width; if (are_tiles_equal(b0 + offset, b1 + offset, width, tile_width, tile_height))