summaryrefslogtreecommitdiff
path: root/gs/psi/zcolor1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gs/psi/zcolor1.c')
-rw-r--r--gs/psi/zcolor1.c57
1 files changed, 28 insertions, 29 deletions
diff --git a/gs/psi/zcolor1.c b/gs/psi/zcolor1.c
index 5feb2e875..1cb5dad46 100644
--- a/gs/psi/zcolor1.c
+++ b/gs/psi/zcolor1.c
@@ -1,6 +1,6 @@
/* Copyright (C) 2001-2006 Artifex Software, Inc.
All Rights Reserved.
-
+
This software is provided AS-IS with no warranty, either express or
implied.
@@ -78,13 +78,13 @@ zsetblackgeneration(i_ctx_t *i_ctx_p)
check_estack(1 + zcolor_remap_one_estack);
code = gs_setblackgeneration_remap(igs, gs_mapped_transfer, false);
if (code < 0)
- return code;
+ return code;
istate->black_generation = *op;
pop(1);
push_op_estack(zcolor_remap_color);
return zcolor_remap_one(i_ctx_p, &istate->black_generation,
- igs->black_generation, igs,
- zcolor_remap_one_finish);
+ igs->black_generation, igs,
+ zcolor_remap_one_finish);
}
/* <redproc> <greenproc> <blueproc> <grayproc> setcolortransfer - */
@@ -105,31 +105,31 @@ zsetcolortransfer(i_ctx_t *i_ctx_p)
istate->transfer_procs.blue = op[-1];
istate->transfer_procs.gray = *op;
if ((code = gs_setcolortransfer_remap(igs,
- gs_mapped_transfer, gs_mapped_transfer,
- gs_mapped_transfer, gs_mapped_transfer,
- false)) < 0
- )
- return code;
+ gs_mapped_transfer, gs_mapped_transfer,
+ gs_mapped_transfer, gs_mapped_transfer,
+ false)) < 0
+ )
+ return code;
/* Use osp rather than op here, because zcolor_remap_one pushes. */
pop(4);
push_op_estack(zcolor_reset_transfer);
if ((code = zcolor_remap_one(i_ctx_p,
- &istate->transfer_procs.red,
- igs->set_transfer.red, igs,
- zcolor_remap_one_finish)) < 0 ||
- (code = zcolor_remap_one(i_ctx_p,
- &istate->transfer_procs.green,
- igs->set_transfer.green, igs,
- zcolor_remap_one_finish)) < 0 ||
- (code = zcolor_remap_one(i_ctx_p,
- &istate->transfer_procs.blue,
- igs->set_transfer.blue, igs,
- zcolor_remap_one_finish)) < 0 ||
- (code = zcolor_remap_one(i_ctx_p, &istate->transfer_procs.gray,
- igs->set_transfer.gray, igs,
- zcolor_remap_one_finish)) < 0
- )
- return code;
+ &istate->transfer_procs.red,
+ igs->set_transfer.red, igs,
+ zcolor_remap_one_finish)) < 0 ||
+ (code = zcolor_remap_one(i_ctx_p,
+ &istate->transfer_procs.green,
+ igs->set_transfer.green, igs,
+ zcolor_remap_one_finish)) < 0 ||
+ (code = zcolor_remap_one(i_ctx_p,
+ &istate->transfer_procs.blue,
+ igs->set_transfer.blue, igs,
+ zcolor_remap_one_finish)) < 0 ||
+ (code = zcolor_remap_one(i_ctx_p, &istate->transfer_procs.gray,
+ igs->set_transfer.gray, igs,
+ zcolor_remap_one_finish)) < 0
+ )
+ return code;
return o_push_estack;
}
@@ -145,16 +145,15 @@ zsetundercolorremoval(i_ctx_t *i_ctx_p)
check_estack(1 + zcolor_remap_one_estack);
code = gs_setundercolorremoval_remap(igs, gs_mapped_transfer, false);
if (code < 0)
- return code;
+ return code;
istate->undercolor_removal = *op;
pop(1);
push_op_estack(zcolor_remap_color);
return zcolor_remap_one(i_ctx_p, &istate->undercolor_removal,
- igs->undercolor_removal, igs,
- zcolor_remap_one_signed_finish);
+ igs->undercolor_removal, igs,
+ zcolor_remap_one_signed_finish);
}
-
/* ------ Initialization procedure ------ */
const op_def zcolor1_op_defs[] =