From 2e194f33db0437ea2f25c22efdad9552aefcab2f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 8 Mar 2012 18:07:22 +0000 Subject: [PATCH] sna/traps: Fix the initialisation of the error term for vertical mono edges Signed-off-by: Chris Wilson --- src/sna/sna_trapezoids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {