summaryrefslogtreecommitdiff
path: root/pcl/pcdraw.c
diff options
context:
space:
mode:
authorJan Stockenius <jan@ghostscript.com>1998-09-04 02:34:09 +0000
committerJan Stockenius <jan@ghostscript.com>1998-09-04 02:34:09 +0000
commitd2b8b3082e84a6514e30fe0f78f256a11fc00c55 (patch)
treef678f3718fbd49e4362c409b4bff85ea9795a107 /pcl/pcdraw.c
parent4394deb3a770d02cd26951a2374d3fed2e16335c (diff)
Added code to handle GL/2's source transparency separately from PCL's
pattern transparency. The two parameters have the same effect (all GL/2 objects are masks, and hence do not support notion of "source" transparency similar to PCL's), but must be maintained independently in the PCL-GL/2 state. Turned off fill-adjust for all PCL objects. This used to (incorrectly) implement pixel placement, which is now implemented directly for rectangles (the only object affected by pixel placement for most printers (the CLJ 5/5M allows pixel placement to also affect scalable characters)). git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@389 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pcdraw.c')
-rw-r--r--pcl/pcdraw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcl/pcdraw.c b/pcl/pcdraw.c
index 117eb6434..06f03e191 100644
--- a/pcl/pcdraw.c
+++ b/pcl/pcdraw.c
@@ -86,13 +86,16 @@ pcl_set_drawing_color(
)
{ int code;
+ /* use PCL's pattern transparency */
+ pcs->pattern_transparent = pcs->pcl_pattern_transparent;
+
if (type == pcl_pattern_raster_cspace)
code = (pcl_pattern_get_proc_PCL(type))(pcs, 0, 0);
else
code = (pcl_pattern_get_proc_PCL(type))(pcs, id, (int)for_image);
if (code >= 0) {
gs_setrasterop(pcs->pgs, (gs_rop3_t)pcs->logical_op);
- gs_setfilladjust(pcs->pgs, pcs->grid_adjust, pcs->grid_adjust);
+ gs_setfilladjust(pcs->pgs, 0.0, 0.0);
}
return 0;
}