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>
This commit is contained in:
Chris Wilson 2011-10-30 21:21:25 +00:00
parent 5c45622b88
commit c8d4f5d32a
1 changed files with 3 additions and 3 deletions

View File

@ -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;