diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1998-09-09 06:46:56 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1998-09-09 06:46:56 +0000 |
commit | c077af623343c80830b1623394f3e6f3e5dc6515 (patch) | |
tree | bda0f2ebc6215f2bb3acfea02d55e509cd972468 /gs/src/gxshade4.c | |
parent | 902a5ec836798d1ece6444312486a330bdd02ce4 (diff) | |
download | ghostpdl-c077af623343c80830b1623394f3e6f3e5dc6515.tar.gz |
gs5.39 release.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@413 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src/gxshade4.c')
-rw-r--r-- | gs/src/gxshade4.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gs/src/gxshade4.c b/gs/src/gxshade4.c index fce817914..c158807a8 100644 --- a/gs/src/gxshade4.c +++ b/gs/src/gxshade4.c @@ -138,6 +138,7 @@ mesh_fill_region(const mesh_fill_state_t * pfs, fixed xa, fixed ya, fixed xb, #undef midpoint_fast gs_client_color rcc[5]; int i; + int code; for (i = 0; i < pfs->num_components; ++i) { float @@ -150,16 +151,21 @@ mesh_fill_region(const mesh_fill_state_t * pfs, fixed xa, fixed ya, fixed xb, } /* Do the "A" triangle. */ rcc[0].paint = cc[0].paint; /* rcc: a,ab,ac,bc,- */ - mesh_fill_region(pfs, xa, ya, xab, yab, xac, yac, rcc, check); + code = mesh_fill_region(pfs, xa, ya, xab, yab, xac, yac, rcc, check); + if (code < 0) + return code; /* Do the central triangle. */ - mesh_fill_region(pfs, xab, yab, xac, yac, xbc, ybc, rcc + 1, check); + code = mesh_fill_region(pfs, xab, yab, xac, yac, xbc, ybc, rcc + 1, check); + if (code < 0) + return code; /* Do the "C" triangle. */ rcc[4].paint = cc[2].paint; /* rcc: a,ab,ac,bc,c */ - mesh_fill_region(pfs, xac, yac, xbc, ybc, xc, yc, rcc + 2, check); + code = mesh_fill_region(pfs, xac, yac, xbc, ybc, xc, yc, rcc + 2, check); + if (code < 0) + return code; /* Do the "B" triangle. */ rcc[2].paint = cc[1].paint; /* rcc: a,ab,b,bc,c */ - mesh_fill_region(pfs, xab, yab, xb, yb, xbc, ybc, rcc + 1, check); - return 0; + return mesh_fill_region(pfs, xab, yab, xb, yb, xbc, ybc, rcc + 1, check); } } @@ -187,7 +193,7 @@ Gt_next_vertex(const gs_shading_mesh_t * psh, shade_coord_stream_t * cs, if (code >= 0 && psh->params.Function) { /* Decode the color with the function. */ - gs_function_evaluate(psh->params.Function, vertex->cc, vertex->cc); + code = gs_function_evaluate(psh->params.Function, vertex->cc, vertex->cc); } return code; } |