[gs-cvs] rev 8608 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Mon Mar 24 13:02:08 PDT 2008
Author: leonardo
Date: 2008-03-24 13:02:07 -0700 (Mon, 24 Mar 2008)
New Revision: 8608
Modified:
trunk/gs/src/gxclimag.c
trunk/gs/src/gxclrect.c
Log:
Fix (clist writer) : Smaller tiles for strip_copy_rop (continued).
DETAILS :
The old code sometimes tried to write a degenerate rectangles to clist.
It happened since revision 8581 due to inaccurate coding.
Should fix ghostpcl regression happened on March 23, 2008 .
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxclimag.c
===================================================================
--- trunk/gs/src/gxclimag.c 2008-03-24 04:17:47 UTC (rev 8607)
+++ trunk/gs/src/gxclimag.c 2008-03-24 20:02:07 UTC (rev 8608)
@@ -82,7 +82,7 @@
return_error(gs_error_unknownerror);
crop_copy(cdev, data, data_x, raster, id, rx, ry, rwidth, rheight);
- if (rwidth < 0 || rheight < 0)
+ if (rwidth <= 0 || rheight <= 0)
return 0;
y0 = ry; /* must do after fit_copy */
Modified: trunk/gs/src/gxclrect.c
===================================================================
--- trunk/gs/src/gxclrect.c 2008-03-24 04:17:47 UTC (rev 8607)
+++ trunk/gs/src/gxclrect.c 2008-03-24 20:02:07 UTC (rev 8608)
@@ -245,7 +245,7 @@
cmd_rects_enum_t re;
crop_fill(cdev, rx, ry, rwidth, rheight);
- if (rwidth < 0 || rheight < 0)
+ if (rwidth <= 0 || rheight <= 0)
return 0;
if (cdev->permanent_error < 0)
return (cdev->permanent_error);
@@ -313,7 +313,7 @@
}
}
crop_fill_y(cdev, ry, rheight);
- if (rheight < 0)
+ if (rheight <= 0)
return 0;
if (cdev->permanent_error < 0)
return (cdev->permanent_error);
@@ -453,7 +453,7 @@
cmd_rects_enum_t re;
crop_fill(cdev, rx, ry, rwidth, rheight);
- if (rwidth < 0 || rheight < 0)
+ if (rwidth <= 0 || rheight <= 0)
return 0;
if (cdev->permanent_error < 0)
return (cdev->permanent_error);
@@ -910,7 +910,7 @@
} else {
crop_copy(cdev, sdata, sourcex, sraster, id, rx, ry, rwidth, rheight);
}
- if (rwidth < 0 || rheight < 0)
+ if (rwidth <= 0 || rheight <= 0)
return 0;
/*
* On CMYK devices, RasterOps must be executed with complete pixels
More information about the gs-cvs
mailing list