=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/plot/smoothing.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- OpenXM_contrib2/asir2000/plot/smoothing.c 2001/04/07 10:53:15 1.5 +++ OpenXM_contrib2/asir2000/plot/smoothing.c 2002/07/11 03:34:34 1.6 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM_contrib2/asir2000/plot/smoothing.c,v 1.4 2000/11/08 05:49:35 takayama Exp $ */ +/* $OpenXM: OpenXM_contrib2/asir2000/plot/smoothing.c,v 1.5 2001/04/07 10:53:15 takayama Exp $ */ #include "ca.h" #include "parse.h" #include "ox.h" @@ -50,6 +50,7 @@ static void polyLine_outputProlog(int xmin, int ymin,i fflush(Fp); } static void polyLine_outputEpilog(void) { + fprintf(Fp,"0 0 0 setrgbcolor \n"); fprintf(Fp,"showpage \n"); fflush(Fp); } static void polyLine_error(char *s) { @@ -119,7 +120,7 @@ struct canvas *can; generatePS_from_image(FILE *fp,XImage *image,int xsize, int ysize, int color[],int colorSize, - struct canvas *can) { + struct canvas *can,struct xcolorForPS *tableOfxcolorForPS) { struct polyLine **pl; int plSize = 0; int *prev; @@ -133,8 +134,11 @@ generatePS_from_image(FILE *fp,XImage *image,int xsize polyLine_outputProlog(0,0,Xsize,Ysize); switch(Strategy_generate_PS) { default: + fprintf(Fp,"%% debug info : colorSize=%d\n",colorSize); for (c=0; c