[gs-bugs] [Bug 691856] page rendering blurry when rotated (=?UTF-8?Q?90=C2=B0=20or=20270=C2=B0?=)
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Wed Jan 5 15:10:46 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=691856
--- Comment #6 from zeniko at gmail.com 2011-01-05 15:10:42 UTC ---
The following patch seems to fix our issue:
Index: mupdf/draw/imagedraw.c
===================================================================
--- mupdf/draw/imagedraw.c (revision 2604)
+++ mupdf/draw/imagedraw.c (working copy)
@@ -295,6 +295,9 @@
dolerp = 1;
if (sqrtf(ctm.b * ctm.b + ctm.d * ctm.d) > img->h)
dolerp = 1;
+ /* cf. http://bugs.ghostscript.com/show_bug.cgi?id=691856 */
+ if (dolerp && fz_isrectilinear(ctm) && img->w == (int)(ctm.a + ctm.b)
&& img->h == (int)(ctm.c + ctm.d))
+ dolerp = 0;
bbox = fz_roundrect(fz_transformrect(ctm, fz_unitrect));
bbox = fz_intersectbbox(bbox, scissor);
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list