summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gsovrc.h')
-rw-r--r--base/gsovrc.h37
1 files changed, 10 insertions, 27 deletions
diff --git a/base/gsovrc.h b/base/gsovrc.h
index 4df2df22..ccef5f5c 100644
--- a/base/gsovrc.h
+++ b/base/gsovrc.h
@@ -216,6 +216,12 @@
* closing of a device is not itself used as an error indication.
*/
+typedef enum {
+ OP_STATE_NONE = 0,
+ OP_STATE_FILL,
+ OP_STATE_STROKE,
+} OP_FS_STATE;
+
typedef struct gs_overprint_params_s gs_overprint_params_t;
struct gs_overprint_params_s {
@@ -227,38 +233,12 @@ struct gs_overprint_params_s {
* are ignored, and the compositor does nothing with respect to rendering
* (it doesn't even impose a performance penalty).
*
- * If this field is true, the retain_spot_comps and potentially the
- * retained_comps fields should be initialized.
*
* Note that this field may be false even if overprint is true. This
* would be the case if the current color space was a Separation color
* space with the component "All".
*/
- bool retain_any_comps;
-
- /*
- * Are spot (non-process) color component values retained?
- *
- * If overprint is true, this field will be true for all color spaces
- * other than Separation/DeviceN color spaces.
- *
- * The overprint compositor will itself determine what constitutes a
- * process color. This is done by using the color space mapping
- * routines for the target device for all three standard device
- * color spaces (DeviceGray, DeviceRGB, and DeviceCMYK) and the
- * set of all possible colors with individual components either 0
- * or 1. Any color model component which is mapped to 0 for all of
- * these cases is considered a spot color.
- *
- * If this field is true, the drawn_comps field (see below) is ignored.
- *
- * NB: This field should not be used if the DeviceCMYK color space
- * is being used with a DeviceCMYK color model (which may have
- * additional spot colors). Such a color model must explicitly
- * list the set of drawn components, so as to support overprint
- * mode.
- */
- bool retain_spot_comps;
+ bool retain_any_comps;
/*
* Don't we print anything with overprint ?
@@ -274,6 +254,9 @@ struct gs_overprint_params_s {
* it is to be left unaffected.
*/
gx_color_index drawn_comps;
+ bool is_fill_color; /* This tells us what the current color is for our set up */
+ OP_FS_STATE op_state; /* This sets the state of the device for an upcoming command */
+ bool effective_opm; /* PDF14 needs this information for its compatible blend mode */
};
/*