diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-13 10:51:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-13 10:51:03 +0000 |
commit | 716723d655a6ee11b090642b759e2542ad712c17 (patch) | |
tree | b1df09e6f4338208a5e8693b01c7a779282256d1 /src/sna/sna_trapezoids.c | |
parent | 49374f2155f0c8c80b1c54e968d510d55df49221 (diff) |
sna/trapezoids: Correct ordering of points within TriFran
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index baba8274..2f346ea3 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -7827,7 +7827,8 @@ trifan_fallback(CARD8 op, -bounds.x1, -bounds.y1, 1, (pixman_triangle_t *)&tri); for (i = 3; i < n; i++) { - *p[1+ (i%2)] = points[i]; + *p[1] = *p[2]; + *p[2] = points[i]; pixman_add_triangles(image, -bounds.x1, -bounds.y1, 1, (pixman_triangle_t *)&tri); @@ -7865,7 +7866,8 @@ trifan_fallback(CARD8 op, src, dst, maskFormat, xSrc, ySrc, 1, &tri); for (i = 3; i < n; i++) { - *p[1 + (i%2)] = points[i]; + *p[1] = *p[2]; + *p[2] = points[i]; /* Should xSrc,ySrc be updated? */ triangles_fallback(op, src, dst, maskFormat, |