sna: Clip PolyLines to the current clip box

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-10-27 13:57:59 +01:00
parent 990043f6b8
commit 5d51ff0cf9
1 changed files with 2 additions and 2 deletions

View File

@ -2638,7 +2638,7 @@ sna_poly_zero_line_blt(DrawablePtr drawable,
b->x2++;
b->y2++;
if (oc1 | oc2)
box_intersect(b, &clip.extents);
box_intersect(b, extents);
if (++b == last_box) {
ret = &&rectangle_continue;
goto *jump;
@ -3431,7 +3431,7 @@ sna_poly_zero_segment_blt(DrawablePtr drawable,
b->x2++;
b->y2++;
if (oc1 | oc2)
box_intersect(b, &clip.extents);
box_intersect(b, extents);
if (++b == last_box) {
ret = &&rectangle_continue;
goto *jump;