|
|
1.1 ! root 1: #include <jerq.h> ! 2: #include "layer.h" ! 3: #include <line.h> ! 4: ! 5: /*ARGSUSED*/ ! 6: static void ! 7: Lsegment(l, r, db, fp, o) ! 8: Layer *l; ! 9: Rectangle r; ! 10: Bitmap *db; ! 11: register struct{ ! 12: Point p0, p1; ! 13: Code f; ! 14: }*fp; ! 15: Obscured *o; ! 16: { ! 17: Jclipline(db, r, fp->p0, fp->p1, fp->f); ! 18: } ! 19: ! 20: lsegment(l, p, q, f) ! 21: Layer *l; ! 22: Point p, q; ! 23: Code f; ! 24: { ! 25: Point p0, p1; ! 26: p0=p; ! 27: if(p.x==q.x && p.y==q.y) ! 28: return; ! 29: p1=Jsetline(p, q); ! 30: layerop(l, Lsegment, l->rect, p0, p1, f); ! 31: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.