summaryrefslogtreecommitdiff
path: root/base/gxdcolor.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-02-15 17:22:28 +0000
committerRobin Watts <Robin.Watts@artifex.com>2021-02-17 11:24:32 +0000
commita634d187722befab735da23957d938f156b6cf8f (patch)
treed9b8b9f52f1f853e8d3b72d66ded7b421129f418 /base/gxdcolor.h
parenta67862f2f7ec3826ac1f55947ebdbfe740c1829f (diff)
downloadghostpdl-a634d187722befab735da23957d938f156b6cf8f.tar.gz
Change macro names to be less confusing.
The graphics state contains pairs of color/colorspaces. The 0th ones are known as 'current' ones. The 1st ones have historically been known as 'alt' ones. This nomenclature is held to be confusing, as 'alternate' colors/colorspaces mean something quite different. We therefore update the macros etc to refer to these as 'swapped' ones, which fits better into our usage.
Diffstat (limited to 'base/gxdcolor.h')
-rw-r--r--base/gxdcolor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxdcolor.h b/base/gxdcolor.h
index 9e979b32a..319264a1f 100644
--- a/base/gxdcolor.h
+++ b/base/gxdcolor.h
@@ -302,10 +302,10 @@ int gx_remap_color(gs_gstate *);
#define gx_unset_dev_color(pgs)\
color_unset(gs_currentdevicecolor_inline(pgs))
#define gx_unset_alt_dev_color(pgs)\
- color_unset(gs_altdevicecolor_inline(pgs))
+ color_unset(gs_swappeddevicecolor_inline(pgs))
#define gx_unset_both_dev_colors(pgs)\
(color_unset(gs_currentdevicecolor_inline(pgs)),\
- color_unset(gs_altdevicecolor_inline(pgs)))
+ color_unset(gs_swappeddevicecolor_inline(pgs)))
/* Load the halftone cache in preparation for drawing. */
#define gx_color_load_select(pdevc, pgs, dev, select)\