[gs-cvs] rev 7218 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Wed Nov 22 11:56:29 PST 2006
Author: leonardo
Date: 2006-11-22 11:56:29 -0800 (Wed, 22 Nov 2006)
New Revision: 7218
Modified:
trunk/gs/src/gxshade1.c
Log:
Fix (shadings) : Radial shadings sometimes missed Extend.
DETAILS :
Debugged with CET 09-47I.PS SpecialTestH08Test06.
The old code wrongly computed parameter range for the extent,
when there exist 2 tangenting circles.
In this case the visible part of the extent prolongues to the farest circle.
The old code restricts the extent with the nearest circle.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxshade1.c
===================================================================
--- trunk/gs/src/gxshade1.c 2006-11-22 02:03:00 UTC (rev 7217)
+++ trunk/gs/src/gxshade1.c 2006-11-22 19:56:29 UTC (rev 7218)
@@ -427,7 +427,7 @@
sq = (rect->q.y - y0 + r0) / (y1 - y0 - r1 + r0);
}
if (sp >= 1 && sq >= 1)
- s = min(sp, sq);
+ s = max(sp, sq);
else if(sp >= 1)
s = sp;
else if (sq >= 1)
More information about the gs-cvs
mailing list