damage: Remove vestigial y_inversion code

tight-png
Andri Yngvason 2019-10-13 10:05:36 +00:00
parent 05ff0c1514
commit 9f67b47e8c
1 changed files with 1 additions and 4 deletions

View File

@ -56,8 +56,6 @@ int check_damage_linear(struct pixman_region16 *damage,
int width = fb0->width; int width = fb0->width;
int height = fb0->height; int height = fb0->height;
bool y_invert = false;
assert(x_hint + width_hint <= width); assert(x_hint + width_hint <= width);
assert(y_hint + height_hint <= height); assert(y_hint + height_hint <= height);
@ -72,8 +70,7 @@ int check_damage_linear(struct pixman_region16 *damage,
x += TILE_SIDE_LENGTH) { x += TILE_SIDE_LENGTH) {
int tile_width = MIN(TILE_SIDE_LENGTH, width - x); int tile_width = MIN(TILE_SIDE_LENGTH, width - x);
int offset = y_invert ? x + (height - y - tile_height) * width int offset = x + y * width;
: x + y * width;
if (are_tiles_equal(b0 + offset, b1 + offset, if (are_tiles_equal(b0 + offset, b1 + offset,
width, tile_width, tile_height)) width, tile_width, tile_height))