From bca8531f23845a6c70cf938fb0ab1bc6e9f14fd9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 30 Mar 2011 10:15:18 +0000 Subject: 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 --- gs/base/gxshade6.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gs/base/gxshade6.c') 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. */ -- cgit v1.2.3