mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
Fixed clutter_rect_intersection()
There was a typo where y was used instead of x.
This commit is contained in:
parent
81903eca40
commit
f49aff9682
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user