diff options
Diffstat (limited to 'raster/render.c')
-rw-r--r-- | raster/render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raster/render.c b/raster/render.c index 68e0c6a3..6df46c37 100644 --- a/raster/render.c +++ b/raster/render.c @@ -362,6 +362,7 @@ renderimage(fz_renderer *gc, fz_imagenode *node, fz_matrix ctm) int u0, v0; int x0, y0; int w, h; + int tileheight; DEBUG("image %dx%d %d+%d %s\n{\n", image->w, image->h, image->n, image->a, image->cs?image->cs->name:"(nil)"); @@ -374,7 +375,7 @@ DEBUG("image %dx%d %d+%d %s\n{\n", image->w, image->h, image->n, image->a, image calcimagescale(ctm, image->w, image->h, &dx, &dy); /* y-banded loading/scaling of image, more cache-friendly */ - int tileheight = MAX(512*1024/(image->w * image->n), dy); + tileheight = MAX(512*1024/(image->w * image->n), dy); if ((dx != 1 || dy != 1) && image->h > tileheight) { int y = 0; |