--- ray/src/meta/x11plot.c 2003/02/22 02:07:26 1.1 +++ ray/src/meta/x11plot.c 2003/11/17 02:21:53 1.2 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: x11plot.c,v 1.1 2003/02/22 02:07:26 greg Exp $"; +static const char RCSid[] = "$Id: x11plot.c,v 1.2 2003/11/17 02:21:53 greg Exp $"; #endif /* * X window plotting functions @@ -172,6 +172,7 @@ adjustsize() dysize = dxsize; } +void endpage() /* end of this graph */ { XEvent evnt; @@ -204,6 +205,7 @@ endpage() /* end of this graph */ +void printstr(p) /* output a string */ register PRIMITIVE *p; @@ -243,6 +245,7 @@ register PRIMITIVE *p; +void plotlseg(p) /* plot a line segment */ register PRIMITIVE *p; @@ -296,6 +299,19 @@ register PRIMITIVE *p; #ifdef nyet +static void +fill(xmin,ymin,xmax,ymax,pm) +int xmin,ymin,xmax,ymax; +Pixmap pm; + { + if (pm != 0 && curpat != pm) + { + XSetTile(dpy, gc, pm); + curpat = pm; + } + XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1); + } + fillrect(p) /* fill a rectangle */ register PRIMITIVE *p; @@ -449,23 +465,10 @@ register PRIMITIVE *p; } -fill(xmin,ymin,xmax,ymax,pm) -int xmin,ymin,xmax,ymax; -Pixmap pm; - { - if (pm != 0 && curpat != pm) - { - XSetTile(dpy, gc, pm); - curpat = pm; - } - XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1); - } - #else -filltri() {} -fillpoly() {} -fillrect() {} - +void filltri(PRIMITIVE *p) {} +void fillpoly(PRIMITIVE *p) {} +void fillrect(PRIMITIVE *p) {} #endif