aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/region.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/region.c b/util/region.c
index 817d7b1a..c5bd9e85 100644
--- a/util/region.c
+++ b/util/region.c
@@ -214,7 +214,7 @@ static void region_confine(pixman_region32_t *region, double x1, double y1, doub
int y_ext = floor(y) + (dy == 0 ? 0 : dy > 0 ? 1 : -1);
if (pixman_region32_contains_point(region, x_ext, y_ext, &box)) {
- return region_confine(region, x1, y1, x2, y2, x2_out, y2_out, box);
+ return region_confine(region, x, y, x2, y2, x2_out, y2_out, box);
} else if (dx == 0 || dy == 0) {
*x2_out = x;
*y2_out = y;