diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-14 12:08:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-14 12:08:09 +0100 |
commit | 053bd5bf2425aed44e1c2bb981d98ee5171211a0 (patch) | |
tree | 1630bec44a3bd435d949393f390d138763fd622f /src/sna/sna_trapezoids.c | |
parent | b654b8794db7b00666ce5c59535a9302932c483b (diff) |
sna: Use the correct storage for box_from_seg
Fixes regression from 3aa98289e3a2 with clipped segments. As we clipped
the empty box rather than the segment, we never drew any outlines.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r-- | src/sna/sna_trapezoids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index 8d5594d7..357c4c49 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -2475,7 +2475,7 @@ trapezoids_fallback(CARD8 op, PicturePtr src, PicturePtr dst, depth = maskFormat->depth; if (depth == 1) { format = PIXMAN_a1; - } else if (depth < 8) { + } else if (depth <= 4) { format = PIXMAN_a4; depth = 4; } else |