diff options
author | Igor Melichev <igor.melichev@artifex.com> | 2007-07-17 09:55:56 +0000 |
---|---|---|
committer | Igor Melichev <igor.melichev@artifex.com> | 2007-07-17 09:55:56 +0000 |
commit | 3a3a701279c3b9c9087b3d0185f25d9f7675d7e4 (patch) | |
tree | f2557e7553b47eaa864ca8531390560b8aefcf32 /gs/src | |
parent | dee48ab332bce19f4688aaddb41fa39554d0f10d (diff) |
Banding : Extend clist language with trapezoids, linear color trapezoids and linear color triangles (continued 8).
DETAILS :
This fixes (some) gcc warnings in the recently added code (part 2).
EXPECTED DIFFERENCES :
None.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8134 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src')
-rw-r--r-- | gs/src/gdevpdfi.c | 2 | ||||
-rw-r--r-- | gs/src/gxclpath.c | 1 | ||||
-rw-r--r-- | gs/src/gxclrast.c | 1 | ||||
-rw-r--r-- | gs/src/gxclrect.c | 2 | ||||
-rw-r--r-- | gs/src/gxshade6.c | 4 | ||||
-rw-r--r-- | gs/src/lib.mak | 2 |
6 files changed, 7 insertions, 5 deletions
diff --git a/gs/src/gdevpdfi.c b/gs/src/gdevpdfi.c index e77bc993f..055ea9b82 100644 --- a/gs/src/gdevpdfi.c +++ b/gs/src/gdevpdfi.c @@ -1392,6 +1392,8 @@ gdev_pdf_pattern_manage(gx_device *pdev1, gx_bitmap_id id, return 0; case pattern_manage__shfill_doesnt_need_path: return 0; /* gdev_pdf_fill_path still does need a path. */ + case pattern_manage__handles_clip_path: + return 1; } return_error(gs_error_unregistered); } diff --git a/gs/src/gxclpath.c b/gs/src/gxclpath.c index f5c05526a..0ed01e05b 100644 --- a/gs/src/gxclpath.c +++ b/gs/src/gxclpath.c @@ -18,6 +18,7 @@ #include "gx.h" #include "gpcheck.h" #include "gserrors.h" +#include "gsptype2.h" #include "gxdevice.h" #include "gxdevmem.h" /* must precede gxcldev.h */ #include "gxcldev.h" diff --git a/gs/src/gxclrast.c b/gs/src/gxclrast.c index f0167b7fb..e40e6e7a7 100644 --- a/gs/src/gxclrast.c +++ b/gs/src/gxclrast.c @@ -1415,7 +1415,6 @@ idata: data_size = 0; break; case cmd_opv_fill_trapezoid: { - gx_cmd_rect rl, rr; gs_fixed_edge left, right; fixed ybot, ytop; int options, swap_axes, wh; diff --git a/gs/src/gxclrect.c b/gs/src/gxclrect.c index 41166289f..63ca18a8b 100644 --- a/gs/src/gxclrect.c +++ b/gs/src/gxclrect.c @@ -211,7 +211,7 @@ cmd_write_trapezoid_cmd(gx_device_clist_writer * cldev, gx_clist_state * pcls, cmd_putw(ybot, dp); cmd_putw(ytop, dp); cmd_putw(options, dp); - if_debug6('L', " t%ld:%ld,%ld,%ld,%ld %ld\n", + if_debug6('L', " t%d:%ld,%ld,%ld,%ld %ld\n", rcsize - 1, left->start.x, left->start.y, left->end.x, left->end.y, ybot); if_debug6('L', " t%ld,%ld,%ld,%ld %ld o=%d\n", right->start.x, right->start.y, right->end.x, right->end.y, ytop, options); diff --git a/gs/src/gxshade6.c b/gs/src/gxshade6.c index fb1d39249..04dda2eaa 100644 --- a/gs/src/gxshade6.c +++ b/gs/src/gxshade6.c @@ -27,8 +27,8 @@ #include "gxdcolor.h" #include "gxistate.h" #include "gxshade.h" -#include "gxshade4.h" #include "gxdevcli.h" +#include "gxshade4.h" #include "gxarith.h" #include "gzpath.h" #include "stdint_.h" @@ -226,7 +226,7 @@ init_patch_fill_state(patch_fill_state_t *pfs) /* Warning : pfs->Function must be set in advance. */ const gs_color_space *pcs = pfs->direct_space; gs_client_color fcc0, fcc1; - int i, code; + int i; for (i = 0; i < pfs->num_components; i++) { fcc0.paint.values[i] = -1000000; diff --git a/gs/src/lib.mak b/gs/src/lib.mak index f7187ad70..68595e4b0 100644 --- a/gs/src/lib.mak +++ b/gs/src/lib.mak @@ -1703,7 +1703,7 @@ $(GLOBJ)gxclimag.$(OBJ) : $(GLSRC)gxclimag.c $(GXERR) $(math__h) $(memory__h)\ $(GLCC) $(GLO_)gxclimag.$(OBJ) $(C_) $(GLSRC)gxclimag.c $(GLOBJ)gxclpath.$(OBJ) : $(GLSRC)gxclpath.c $(GXERR)\ - $(math__h) $(memory__h) $(gpcheck_h)\ + $(math__h) $(memory__h) $(gpcheck_h) $(gptype2_h)\ $(gxcldev_h) $(gxclpath_h) $(gxcolor2_h)\ $(gxdcolor_h) $(gxpaint_h)\ $(gzpath_h) $(gzcpath_h) $(stream_h) $(gsserial_h) |