diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-30 21:21:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-30 21:41:08 +0000 |
commit | c8d4f5d32af94f712cc81ff495b19907261759ea (patch) | |
tree | d217d6871cd82828f06f8238ae9342e9181e2f13 | |
parent | 5c45622b889ba66b6476241601e1458d219c45ba (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files 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; |