summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-08 18:07:22 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-08 18:07:22 +0000
commit2e194f33db0437ea2f25c22efdad9552aefcab2f (patch)
tree817d5a52b9c23a12a98f343101df9c9fb461ae32 /src/sna/sna_trapezoids.c
parent635c604b787625f93763001951f8bdf66482c682 (diff)
sna/traps: Fix the initialisation of the error term for vertical mono edges
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index 8e735efe..727b4d2c 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -776,7 +776,7 @@ polygon_add_line(struct polygon *polygon,
if (dx == 0) {
e->vertical = true;
e->x.quo = p1->x;
- e->x.rem = 0;
+ e->x.rem = -dy;
e->dxdy.quo = 0;
e->dxdy.rem = 0;
} else {