summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-10 09:54:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-10 09:54:53 +0100
commit29d1d409b259ba0c85947ef5eef903ea527aa118 (patch)
tree091db66be668e99e21e6b6b14d8fa8b1c919a2fa
parenta83d90ee61be44a2a36b56ad24bbc6544320448f (diff)
sna: Avoid doubling the final step of poly lines
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 5f4e74fa..3013e3d2 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -6103,6 +6103,7 @@ Y_continue:
}
if (dirty) {
+ y -= sdy;
if (sdy < 0) {
b->y2 = b->y1 + 1;
b->y1 = y;
@@ -7371,6 +7372,7 @@ Y_continue:
}
if (dirty) {
+ y1 -= sdy;
if (sdy < 0) {
b->y2 = b->y1 + 1;
b->y1 = y1;