diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-03-20 11:33:01 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-03-20 11:33:01 +0100 |
commit | 88b6c761fed105a8b383104feec6cae3f481a0f5 (patch) | |
tree | 41743cf3d0cb04d4cb617bd4dbdbce09310ec16e /raster | |
parent | 025203bfd341ba19673a14d3887b197eb1739001 (diff) | |
download | mupdf-88b6c761fed105a8b383104feec6cae3f481a0f5.tar.xz |
Fixed patch generating compiler warning.
Diffstat (limited to 'raster')
-rw-r--r-- | raster/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raster/render.c b/raster/render.c index 6a69308b..6f649473 100644 --- a/raster/render.c +++ b/raster/render.c @@ -375,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 + image->a)), dy); if ((dx != 1 || dy != 1) && image->h > tileheight) { int y = 0; |