summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-08-11 11:24:35 +0000
committerTor Andersson <tor@ghostscript.com>2010-08-11 11:24:35 +0000
commitfc2c66f27a3fc22748a82a735386e841ee4d527e (patch)
tree89779dcff972f87982fb6750f6912336a0c3f8eb
parent513acc380e78c60a7202ebf84b2e2fc5a8516583 (diff)
downloadmupdf-fc2c66f27a3fc22748a82a735386e841ee4d527e.tar.xz
Tweak threshhold values for the fast image scaling.
-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 7b778130..066347ee 100644
--- a/fitz/dev_draw.c
+++ b/fitz/dev_draw.c
@@ -532,8 +532,8 @@ fz_drawfillshade(void *user, fz_shade *shade, fz_matrix ctm, float alpha)
static int
fz_calcimagescale(fz_pixmap *image, fz_matrix ctm, int *dx, int *dy)
{
- float sx = image->w / sqrtf(ctm.a * ctm.a + ctm.b * ctm.b);
- float sy = image->h / sqrtf(ctm.c * ctm.c + ctm.d * ctm.d);
+ float sx = image->w / sqrtf(ctm.a * ctm.a + ctm.b * ctm.b) * 0.66f;
+ float sy = image->h / sqrtf(ctm.c * ctm.c + ctm.d * ctm.d) * 0.66f;
*dx = sx > 1 ? sx : 1;
*dy = sy > 1 ? sy : 1;
return *dx > 1 || *dy > 1;