[gs-cvs] rev 8543 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Sat Feb 23 19:37:04 PST 2008
Author: leonardo
Date: 2008-02-23 19:37:03 -0800 (Sat, 23 Feb 2008)
New Revision: 8543
Modified:
trunk/gs/src/gxiscale.c
Log:
Fix (images) : Improve coordinate precision when scaling an image (continued 7).
DETAILS :
Ghostscript Bug 687345 "Image interpolation problem at a band boundary"
Ghostscript Bug 689720 "Hang with -dDOINTERPOLATE caused by rev 8530 changes"
An expression for HeightOut missed 'abs' with recent patch.
Thanks to Ray for pointing it out.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxiscale.c
===================================================================
--- trunk/gs/src/gxiscale.c 2008-02-24 02:58:34 UTC (rev 8542)
+++ trunk/gs/src/gxiscale.c 2008-02-24 03:37:03 UTC (rev 8543)
@@ -105,6 +105,7 @@
iss.HeightOut = fixed2int_pixround_perfect((fixed)((int64_t)(penum->rect.y + penum->rect.h) *
penum->dst_height / penum->Height))
- fixed2int_pixround_perfect((fixed)((int64_t)penum->rect.y * penum->dst_height / penum->Height));
+ iss.HeightOut = any_abs(iss.HeightOut);
iss.WidthIn = penum->rect.w;
iss.HeightIn = penum->rect.h;
iss.src_y_offset = penum->rect.y;
More information about the gs-cvs
mailing list