summaryrefslogtreecommitdiff
path: root/raster
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:33:01 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:33:01 +0100
commit88b6c761fed105a8b383104feec6cae3f481a0f5 (patch)
tree41743cf3d0cb04d4cb617bd4dbdbce09310ec16e /raster
parent025203bfd341ba19673a14d3887b197eb1739001 (diff)
downloadmupdf-88b6c761fed105a8b383104feec6cae3f481a0f5.tar.xz
Fixed patch generating compiler warning.
Diffstat (limited to 'raster')
-rw-r--r--raster/render.c2
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;