From c8d4f5d32af94f712cc81ff495b19907261759ea Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 30 Oct 2011 21:21:25 +0000 Subject: sna: Correct PolyRectangle verticals to be the end-point not the length Fixes an off-by-one in the drawing of the rectangles caused by a too-literal translation of the rectangles into boxes. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 6f0275b8..c0c72eec 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4284,7 +4284,7 @@ zero: b[1].y2 += rr.height; b[2].y1 = rr.y + 1; - b[2].y2 = rr.y + rr.height - 1; + b[2].y2 = rr.y + rr.height; b[2].x1 = rr.x; b[2].x2 = rr.x + 1; @@ -4334,7 +4334,7 @@ zero_clipped: box[1].y2 += rr.height; box[2].y1 = rr.y + 1; - box[2].y2 = box[2].y1 + rr.height - 1; + box[2].y2 = box[2].y1 + rr.height; box[2].x1 = rr.x; box[2].x2 = rr.x + 1; @@ -4392,7 +4392,7 @@ zero_clipped: box[1].y2 += rr.height; box[2].y1 = rr.y + 1; - box[2].y2 = box[2].y1 + rr.height - 1; + box[2].y2 = box[2].y1 + rr.height; box[2].x1 = rr.x; box[2].x2 = rr.x + 1; -- cgit v1.2.3