|
|
1.1 ! root 1: /* line.c 4.1 83/03/09 */ ! 2: /* ! 3: * line: draw a line from point 1 to point 2. ! 4: */ ! 5: ! 6: #include "2648.h" ! 7: ! 8: line(x1, y1, x2, y2) ! 9: int x1, y1, x2, y2; ! 10: { ! 11: #ifdef TRACE ! 12: if (trace) ! 13: fprintf(trace, "line((%d, %d), (%d, %d)),", x1, y1, x2, y2); ! 14: #endif ! 15: if (x1==_penx && y1==_peny) { ! 16: /* ! 17: * Get around a bug in the HP terminal where one point ! 18: * lines don't get drawn more than once. ! 19: */ ! 20: move(x1, y1+1); ! 21: sync(); ! 22: } ! 23: move(x1, y1); ! 24: draw(x2, y2); ! 25: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.