diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-08-11 11:24:35 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-08-11 11:24:35 +0000 |
commit | fc2c66f27a3fc22748a82a735386e841ee4d527e (patch) | |
tree | 89779dcff972f87982fb6750f6912336a0c3f8eb /fitz | |
parent | 513acc380e78c60a7202ebf84b2e2fc5a8516583 (diff) | |
download | mupdf-fc2c66f27a3fc22748a82a735386e841ee4d527e.tar.xz |
Tweak threshhold values for the fast image scaling.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/dev_draw.c | 4 |
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; |