summaryrefslogtreecommitdiff
path: root/fitz/dev_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/dev_draw.c')
-rw-r--r--fitz/dev_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/dev_draw.c b/fitz/dev_draw.c
index 2f1ec421..9dfa58fc 100644
--- a/fitz/dev_draw.c
+++ b/fitz/dev_draw.c
@@ -518,8 +518,8 @@ calcimagestate(fz_drawdevice *dev, fz_pixmap *image, fz_matrix ctm,
else
*dy = sy;
- w = image->w / *dx;
- h = image->h / *dy;
+ w = (image->w + *dx - 1) / *dx;
+ h = (image->h + *dy - 1) / *dy;
path = fz_newpath();
fz_moveto(path, 0, 0);