From f49aff9682aebf7f280c9c55e71ac1ce1f4e96ff Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sun, 9 Dec 2012 03:30:05 +0900 Subject: [PATCH] Fixed clutter_rect_intersection() There was a typo where y was used instead of x. --- clutter/clutter-base-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-base-types.c b/clutter/clutter-base-types.c index 0496b5204..62b55d7df 100644 --- a/clutter/clutter-base-types.c +++ b/clutter/clutter-base-types.c @@ -1053,7 +1053,7 @@ clutter_rect_intersection (ClutterRect *a, clutter_rect_normalize_internal (a); clutter_rect_normalize_internal (b); - x_1 = MAX (a->origin.x, b->origin.y); + x_1 = MAX (a->origin.x, b->origin.x); y_1 = MAX (a->origin.y, b->origin.y); x_2 = MIN (a->origin.x + a->size.width, b->origin.x + b->size.width); y_2 = MIN (a->origin.y + a->size.height, b->origin.y + b->size.height);