summaryrefslogtreecommitdiff
path: root/gs/base/gdevdrop.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-03-30 10:15:18 +0000
committerRobin Watts <robin.watts@artifex.com>2011-03-30 10:15:18 +0000
commitbca8531f23845a6c70cf938fb0ab1bc6e9f14fd9 (patch)
tree26eda2c284f78fb4a92c6b47cf991c17885d9856 /gs/base/gdevdrop.c
parented774ca984d2566b00e212d130644abd5529235f (diff)
Add new dev_spec_op call to device procs table, along with gxdevsop.h header
that defines the operation enumeration for it. Move existing calls of pattern_manage across to using dev_spec_op instead. Add comments to the pattern management definitions noting that it is deprecated and should not be used. No cluster differences (aside from indeterminisms). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12326 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gdevdrop.c')
-rw-r--r--gs/base/gdevdrop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gs/base/gdevdrop.c b/gs/base/gdevdrop.c
index 292913f4d..e878b79fa 100644
--- a/gs/base/gdevdrop.c
+++ b/gs/base/gdevdrop.c
@@ -408,9 +408,11 @@ pack_planar_from_standard(gx_device_memory * dev, int y, int destx,
const byte *sp = src;
int x, plane;
- if (pdepth == 1 && dev->color_info.num_components == 4)
- return pack_planar_cmyk_1bit_from_standard(dev, y, destx, src, width,
- depth, src_depth);
+ if (pdepth == 1 && dev->color_info.num_components == 4) {
+ pack_planar_cmyk_1bit_from_standard(dev, y, destx, src, width,
+ depth, src_depth);
+ return;
+ }
for (plane = 0; plane < dev->num_planes; plane++) {
byte *dest = scan_line_base(dev, y + plane * dev->height);