summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-04-17 15:11:05 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2010-04-17 15:11:05 +0200
commit0e2946ec5b22819d57f7754435cbf93edb3af077 (patch)
treef628524f1ba2e10f94e0953c7c715d8cbb061aee /fitz
parentab13a8c3718c54701d5df550a978a78f9aa670db (diff)
downloadmupdf-0e2946ec5b22819d57f7754435cbf93edb3af077.tar.xz
Fix omitted initialization in shade debug printing.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/res_shade.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fitz/res_shade.c b/fitz/res_shade.c
index 12403db6..be7f472d 100644
--- a/fitz/res_shade.c
+++ b/fitz/res_shade.c
@@ -41,7 +41,7 @@ fz_debugshade(fz_shade *shade)
printf(" colorspace %s\n", shade->cs->name);
printf(" matrix [%g %g %g %g %g %g]\n",
- shade->matrix.a, shade->matrix.b, shade->matrix.c,
+ shade->matrix.a, shade->matrix.b, shade->matrix.c,
shade->matrix.d, shade->matrix.e, shade->matrix.f);
if (shade->usebackground)
@@ -61,16 +61,15 @@ fz_debugshade(fz_shade *shade)
n = 2 + shade->cs->n;
vert = shade->mesh;
+ i = 0;
while (i < shade->meshlen)
{
- float x = vert[0];
- float y = vert[1];
- printf(" (%g, %g): ", x, y);
+ printf(" (%g, %g): ", vert[0], vert[1]);
for (j = 2; j < n; j++)
printf("%s%g", j == 2 ? "" : " ", vert[j]);
printf("\n");
-
+
vert += n;
i++;
}