172 |
|
dysize = dxsize; |
173 |
|
} |
174 |
|
|
175 |
+ |
void |
176 |
|
endpage() /* end of this graph */ |
177 |
|
{ |
178 |
|
XEvent evnt; |
205 |
|
|
206 |
|
|
207 |
|
|
208 |
+ |
void |
209 |
|
printstr(p) /* output a string */ |
210 |
|
|
211 |
|
register PRIMITIVE *p; |
245 |
|
|
246 |
|
|
247 |
|
|
248 |
+ |
void |
249 |
|
plotlseg(p) /* plot a line segment */ |
250 |
|
|
251 |
|
register PRIMITIVE *p; |
299 |
|
|
300 |
|
#ifdef nyet |
301 |
|
|
302 |
+ |
static void |
303 |
+ |
fill(xmin,ymin,xmax,ymax,pm) |
304 |
+ |
int xmin,ymin,xmax,ymax; |
305 |
+ |
Pixmap pm; |
306 |
+ |
{ |
307 |
+ |
if (pm != 0 && curpat != pm) |
308 |
+ |
{ |
309 |
+ |
XSetTile(dpy, gc, pm); |
310 |
+ |
curpat = pm; |
311 |
+ |
} |
312 |
+ |
XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1); |
313 |
+ |
} |
314 |
+ |
|
315 |
|
fillrect(p) /* fill a rectangle */ |
316 |
|
|
317 |
|
register PRIMITIVE *p; |
465 |
|
|
466 |
|
} |
467 |
|
|
452 |
– |
fill(xmin,ymin,xmax,ymax,pm) |
453 |
– |
int xmin,ymin,xmax,ymax; |
454 |
– |
Pixmap pm; |
455 |
– |
{ |
456 |
– |
if (pm != 0 && curpat != pm) |
457 |
– |
{ |
458 |
– |
XSetTile(dpy, gc, pm); |
459 |
– |
curpat = pm; |
460 |
– |
} |
461 |
– |
XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1); |
462 |
– |
} |
463 |
– |
|
468 |
|
#else |
469 |
|
|
470 |
< |
filltri() {} |
471 |
< |
fillpoly() {} |
472 |
< |
fillrect() {} |
469 |
< |
|
470 |
> |
void filltri(PRIMITIVE *p) {} |
471 |
> |
void fillpoly(PRIMITIVE *p) {} |
472 |
> |
void fillrect(PRIMITIVE *p) {} |
473 |
|
|
474 |
|
#endif |