From 0e0892dc80748e0c640d1ffe9b0ccc12c01836e2 Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Sat, 27 Sep 2014 17:04:02 +0200 Subject: [PATCH] cairo-tor-scan-converter is off by half of a subrow --- src/cairo-tor-scan-converter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-tor-scan-converter.c b/src/cairo-tor-scan-converter.c index 89ef20f..fa7ea46 100644 --- a/src/cairo-tor-scan-converter.c +++ b/src/cairo-tor-scan-converter.c @@ -1017,7 +1017,7 @@ polygon_add_edge (struct polygon *polygon, e->x.quo = edge->line.p1.x; e->x.rem = 0; } else { - e->x = floored_muldivrem (ytop - edge->line.p1.y, dx, dy); + e->x = floored_muldivrem (2 * ytop + 1 - 2 * edge->line.p1.y, dx, 2 * dy); e->x.quo += edge->line.p1.x; } -- 1.9.3