[clutter] Fixed clutter_rect_intersection()



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]