sna: Clip PolyLines to the current clip box
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
990043f6b8
commit
5d51ff0cf9
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue