summaryrefslogtreecommitdiff
path: root/fitz/dev_draw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-01-05 15:15:25 +0000
committerRobin Watts <robin.watts@artifex.com>2011-01-05 15:15:25 +0000
commit56eed7c5e97f89368fd838c49f714e5498582460 (patch)
treeb40dec8f3eb854022022f4bd79c598468d5f21fd /fitz/dev_draw.c
parentbf092e4b5ce4810eae3e8c6f54cec19bdf6d2c85 (diff)
downloadmupdf-56eed7c5e97f89368fd838c49f714e5498582460.tar.xz
Correct miscalculation of target image sizes for scaling.
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 e71abe24..02930d8b 100644
--- a/fitz/dev_draw.c
+++ b/fitz/dev_draw.c
@@ -599,8 +599,8 @@ fz_drawfillimage(void *user, fz_pixmap *image, fz_matrix ctm, float alpha)
}
#ifdef SMOOTHSCALE
- dx = sqrtf(ctm.a * ctm.a + ctm.c * ctm.c);
- dy = sqrtf(ctm.b * ctm.b + ctm.d * ctm.d);
+ dx = sqrtf(ctm.a * ctm.a + ctm.b * ctm.b);
+ dy = sqrtf(ctm.c * ctm.c + ctm.d * ctm.d);
if (dx < image->w && dy < image->h)
{
scaled = fz_smoothtransformpixmap(image, &ctm, dev->dest->x, dev->dest->y, dx, dy);