summaryrefslogtreecommitdiff
path: root/pcl/pcdraw.h
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>1998-07-23 03:57:22 +0000
committerHenry Stiles <henry.stiles@artifex.com>1998-07-23 03:57:22 +0000
commit88c12f9e04760ca4d5f13418458a7e9aaff5d312 (patch)
tree73b2454a4495e1bb0d968de27d086209af1e4b34 /pcl/pcdraw.h
parent6f85d070a87ac7dfdf3846899ba350798a163d40 (diff)
This commit was generated by cvs2svn to compensate for changes in r190,
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@191 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pcdraw.h')
-rw-r--r--pcl/pcdraw.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/pcl/pcdraw.h b/pcl/pcdraw.h
index 5a8b8dc22..40d6ca18e 100644
--- a/pcl/pcdraw.h
+++ b/pcl/pcdraw.h
@@ -85,14 +85,16 @@ typedef struct pcl_pattern_s {
/* Set the color and pattern for drawing. */
/* We pass the pattern rotation explicitly, since it is different */
/* for PCL and HP-GL. The rotation is expressed as the multiple of */
-/* 90 degrees (i.e., 0..3) to be added to the page orientation. */
-int pcl_set_drawing_color_rotation(P5(pcl_state_t *pcls,
+/* 90 degrees (i.e., 0..3) to be added to the page orientation. Also */
+/* the phase or "origin" of the pattern is specified in device space */
+int pcl_set_drawing_color_rotation(P6(pcl_state_t *pcls,
pcl_pattern_type_t type,
const pcl_id_t *pid, pl_dict_t *patterns,
- int rotation));
-#define pcl_set_drawing_color(pcls, type, pid)\
- pcl_set_drawing_color_rotation(pcls, type, pid, &(pcls)->patterns,\
- ((pcls)->rotate_patterns ?\
- (pcls)->print_direction : 0))
+ int rotation, gs_point *origin));
+
+/* same as above function but is only called only by pcl. It derives
+ the rotation and origin from pcl state values */
+int pcl_set_drawing_color(P3(pcl_state_t *pcls, pcl_pattern_type_t type,
+ const pcl_id_t *pid));
#endif /* pcdraw_INCLUDED */