summaryrefslogtreecommitdiff
path: root/src/cairo-mono-scan-converter.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-13 09:39:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-13 12:31:14 +0100
commit3e655f081921c8caa0b6d2bedfbe5f6174e999a1 (patch)
treeb2644dfe7c89f853eb2de6d408c69000d70461e1 /src/cairo-mono-scan-converter.c
parent05a73434fc5ce8157af70b4950ca9de4c6dd7a46 (diff)
downloadcairo-3e655f081921c8caa0b6d2bedfbe5f6174e999a1.tar.gz
traps: Send unaligned boxes as trapezoids
According to the little fishies this performs significantly better. As a bonus, it did not handle overlapping boxes correctly... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-mono-scan-converter.c')
-rw-r--r--src/cairo-mono-scan-converter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-mono-scan-converter.c b/src/cairo-mono-scan-converter.c
index 52cd93530..4dc8aaa1a 100644
--- a/src/cairo-mono-scan-converter.c
+++ b/src/cairo-mono-scan-converter.c
@@ -127,7 +127,7 @@ polygon_init (struct polygon *polygon, int ymin, int ymax)
if (unlikely (NULL == polygon->y_buckets))
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
}
- memset (polygon->y_buckets, 0, h * sizeof (struct edge *));
+ memset (polygon->y_buckets, 0, h * sizeof (struct edge *));
polygon->ymin = ymin;
polygon->ymax = ymax;