sna: Extend rectangular PolyLines to cover corner pixels on ccw paths

Reported-by: Joe Peterson <joe@skyrush.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55484
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-01-22 09:24:04 +00:00
parent c8817e24a9
commit 2d92d8ec56
1 changed files with 6 additions and 0 deletions

View File

@ -7006,6 +7006,8 @@ sna_poly_line_blt(DrawablePtr drawable,
b->y1 = p.y;
b->y2 = last.y;
}
b->y2 += last.x == p.x;
b->x2 += last.y == p.y;
DBG(("%s: blt (%d, %d), (%d, %d)\n",
__FUNCTION__,
b->x1, b->y1, b->x2, b->y2));
@ -7063,6 +7065,8 @@ sna_poly_line_blt(DrawablePtr drawable,
b->y1 = p.y;
b->y2 = last.y;
}
b->y2 += last.x == p.x;
b->x2 += last.y == p.y;
DBG(("%s: blt (%d, %d), (%d, %d)\n",
__FUNCTION__,
b->x1, b->y1, b->x2, b->y2));
@ -7119,6 +7123,8 @@ sna_poly_line_blt(DrawablePtr drawable,
box.y1 = p.y;
box.y2 = last.y;
}
b->y2 += last.x == p.x;
b->x2 += last.y == p.y;
DBG(("%s: blt (%d, %d), (%d, %d)\n",
__FUNCTION__,
box.x1, box.y1, box.x2, box.y2));