summaryrefslogtreecommitdiff
path: root/src/cairo-mesh-pattern-rasterizer.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2014-03-14 15:31:34 +0100
committerUli Schlachter <psychon@znc.in>2014-03-21 14:10:19 +0100
commitbb17403622e9ea474017e0039af8ee48b2b285db (patch)
tree6862bbb949d41d1d75ba3651dc0c3a9c93b8c1a0 /src/cairo-mesh-pattern-rasterizer.c
parent372c8c314a93e0efba53319a120a9ccc2c99658b (diff)
downloadcairo-bb17403622e9ea474017e0039af8ee48b2b285db.tar.gz
mesh-rasterize: Fix number of iterations
Commit 44a09f462c fixed a compiler warning, but changed the result of this code. This is because the old 'for' loop did one more iteration than the new 'while' loop. Fix this by incrementing the loop counter once before the loop. Fixes: mesh-pattern mesh-pattern-accuracy mesh-pattern-conical mesh-pattern-control-points mesh-pattern-fold mesh-pattern-overlap mesh-pattern-transformed record-mesh Signed-off-by: Uli Schlachter <psychon@znc.in> Tested-by: Bryce Harrington <b.harrington@samsung.com>
Diffstat (limited to 'src/cairo-mesh-pattern-rasterizer.c')
-rw-r--r--src/cairo-mesh-pattern-rasterizer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-mesh-pattern-rasterizer.c b/src/cairo-mesh-pattern-rasterizer.c
index 548e88056..1b63ca8a6 100644
--- a/src/cairo-mesh-pattern-rasterizer.c
+++ b/src/cairo-mesh-pattern-rasterizer.c
@@ -728,6 +728,7 @@ rasterize_bezier_patch (unsigned char *data, int width, int height, int stride,
dcend[i] = (col[3][i] - col[1][i]) / v;
}
+ v++;
while (v--) {
cairo_point_double_t nodes[4];
for (i = 0; i < 4; ++i) {