/*******************************************************************/ /* */ /* HI-RES PLOT. SUNVIEW INTERFACE */ /* */ /*******************************************************************/ /* $Id: plotsun.c,v 1.1.1.1 1999/09/16 13:47:44 karim Exp $ */ #include "pari.h" #include "rect.h" #include #include #include #include typedef struct spoint {int x,y;} SPoint; typedef struct ssegment {int x1,y1,x2,y2;} SSegment; typedef struct srectangle {int x,y,width,height;} SRectangle; #define ISCR 1120 /* 1400 en haute resolution */ #define JSCR 800 /* 1120 en haute resolution */ void rectdraw0(long *w, long *x, long *y, long lw, long do_free) { long *ptx,*pty,*numpoints,*numtexts,*xtexts,*ytexts; long n,i,j,x0,y0; long a,b,c,d,ne; long rcnt[ROt_MAX+1]; char **texts; PariRect *e; RectObj *p1; Frame ecran; Canvas canevas; Pixwin *pw; Pixfont *font; SPoint *points, **lines, *SLine; SSegment *segments; SRectangle *rectangles, SRec; if (fork()) return; /* parent process returns */ /* child process goes on */ freeall(); /* PARI stack isn't needed anymore, keep rectgraph */ PARI_get_plot(1); rcnt[ROt_MV]=rcnt[ROt_PT]=rcnt[ROt_LN]=0; rcnt[ROt_BX]=rcnt[ROt_MP]=rcnt[ROt_ML]=0; rcnt[ROt_ST]=0; for(i=0;i