diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-03-30 10:15:18 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-03-30 10:15:18 +0000 |
commit | bca8531f23845a6c70cf938fb0ab1bc6e9f14fd9 (patch) | |
tree | 26eda2c284f78fb4a92c6b47cf991c17885d9856 /gs/base/gxshade6.c | |
parent | ed774ca984d2566b00e212d130644abd5529235f (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/gxshade6.c')
-rw-r--r-- | gs/base/gxshade6.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gs/base/gxshade6.c b/gs/base/gxshade6.c index 308d1d40e..df6170ef7 100644 --- a/gs/base/gxshade6.c +++ b/gs/base/gxshade6.c @@ -35,6 +35,7 @@ #include "math_.h" #include "vdtrace.h" #include "gsicc_cache.h" +#include "gxdevsop.h" #define VD_TRACE_TENSOR_PATCH 1 @@ -3168,8 +3169,8 @@ int mesh_triangle(patch_fill_state_t *pfs, const shading_vertex_t *p0, const shading_vertex_t *p1, const shading_vertex_t *p2) { - if ((*dev_proc(pfs->dev, pattern_manage))(pfs->dev, - gs_no_id, NULL, pattern_manage__shading_area) > 0) { + if ((*dev_proc(pfs->dev, dev_spec_op))(pfs->dev, + gxdso_pattern_shading_area, NULL, 0) > 0) { /* Inform the device with the shading coverage area. First compute the sign of the area, because all areas to be clipped in same direction. */ @@ -4228,8 +4229,8 @@ patch_fill(patch_fill_state_t *pfs, const patch_curve_t curve[4], make_tensor_patch(pfs, &p, curve, interior); pfs->unlinear = !is_linear_color_applicable(pfs); pfs->linear_color = false; - if ((*dev_proc(pfs->dev, pattern_manage))(pfs->dev, - gs_no_id, NULL, pattern_manage__shading_area) > 0) { + if ((*dev_proc(pfs->dev, dev_spec_op))(pfs->dev, + gxdso_pattern_shading_area, NULL, 0) > 0) { /* Inform the device with the shading coverage area. First compute the sign of the area, because all areas to be clipped in same direction. */ |