[gs-cvs] rev 8576 - trunk/gs/src

marcos at ghostscript.com marcos at ghostscript.com
Sun Mar 2 17:17:09 PST 2008


Author: marcos
Date: 2008-03-02 17:17:09 -0800 (Sun, 02 Mar 2008)
New Revision: 8576

Modified:
   trunk/gs/src/gdevpx.c
Log:
Fall back to using gx_default_copy_mono() in pclxl_copy_mono() if data_x!=0.

Details:

Fixes bug 688992.  Will increase the size of the generated PXL file in some cases; a better solution would be to modify the pclxl_write_image_data()function to handle data_x!=0.

Expected regressions:

None, pxlmono isn't covered in the regression suite.


Modified: trunk/gs/src/gdevpx.c
===================================================================
--- trunk/gs/src/gdevpx.c	2008-03-02 22:33:04 UTC (rev 8575)
+++ trunk/gs/src/gdevpx.c	2008-03-03 01:17:09 UTC (rev 8576)
@@ -1218,6 +1218,11 @@
     code = gdev_vector_update_clip_path(vdev, NULL);
     if (code < 0)
 	return code;
+
+    if (data_x !=0 )
+        return gx_default_copy_mono(dev, data, data_x, raster, id, 
+  				    x, y, w, h, zero, one);
+
     pclxl_set_cursor(xdev, x, y);
     if (id != gs_no_id && zero == gx_no_color_index &&
 	one != gx_no_color_index && data_x == 0
@@ -1296,6 +1301,8 @@
     code = gdev_vector_update_clip_path(vdev, NULL);
     if (code < 0)
 	return code;
+
+
     source_bit = sourcex * dev->color_info.depth;
     if ((source_bit & 7) != 0)
 	return gx_default_copy_color(dev, base, sourcex, raster, id,



More information about the gs-cvs mailing list