Fixed clutter_rect_intersection()

There was a typo where y was used instead of x.
This commit is contained in:
Tristan Van Berkom 2012-12-09 03:30:05 +09:00
parent 81903eca40
commit f49aff9682

View File

@ -1053,7 +1053,7 @@ clutter_rect_intersection (ClutterRect *a,
clutter_rect_normalize_internal (a); clutter_rect_normalize_internal (a);
clutter_rect_normalize_internal (b); 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); y_1 = MAX (a->origin.y, b->origin.y);
x_2 = MIN (a->origin.x + a->size.width, b->origin.x + b->size.width); 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); y_2 = MIN (a->origin.y + a->size.height, b->origin.y + b->size.height);