From b400c26b236bdd462daabc88f44ee98720a1693c Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Fri, 9 Aug 2019 15:41:51 +0200 Subject: Simplify check --- util/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/region.c b/util/region.c index 61f9c7c7..a652dbf8 100644 --- a/util/region.c +++ b/util/region.c @@ -218,7 +218,7 @@ static void region_confine(pixman_region32_t *region, double x1, double y1, doub bool bordering_x = x == box.x1 || x == box.x2 - 1; bool bordering_y = y == box.y1 || y == box.y2 - 1; - if ((bordering_x && bordering_y) || (!bordering_x && !bordering_y)) { + if (bordering_x == bordering_y) { double x2_potential, y2_potential; double tmp1, tmp2; region_confine(region, x, y, x, y2, &tmp1, &y2_potential, box); -- cgit v1.2.3