From 1caf741a4a41ef46a43980ba0be897770fea13db Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 20 Jul 2011 13:02:28 +0800 Subject: [PATCH] glamor: Fixed a bug when computing the bounds of boxes. Signed-off-by: Zhigang Gong --- glamor/glamor_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index 2c6563232..30432cf1f 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -134,11 +134,11 @@ glamor_calculate_boxes_bound(BoxPtr bound, BoxPtr boxes, int nbox) if (x_min > boxes[i].x1) x_min = boxes[i].x1; if (y_min > boxes[i].y1) - x_min = boxes[i].y1; + y_min = boxes[i].y1; if (x_max < boxes[i].x2) x_max = boxes[i].x2; - if (y_max > boxes[i].y2) + if (y_max < boxes[i].y2) y_max = boxes[i].y2; } bound->x1 = x_min;