[clutter] Fixed clutter_rect_intersection()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Fixed clutter_rect_intersection()
- Date: Mon, 10 Dec 2012 06:50:35 +0000 (UTC)
commit f49aff9682aebf7f280c9c55e71ac1ce1f4e96ff
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Dec 9 03:30:05 2012 +0900
Fixed clutter_rect_intersection()
There was a typo where y was used instead of x.
clutter/clutter-base-types.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-base-types.c b/clutter/clutter-base-types.c
index 0496b52..62b55d7 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]