1*11477Sralph /* line.c 4.1 83/03/09 */ 2*11477Sralph /* 3*11477Sralph * line: draw a line from point 1 to point 2. 4*11477Sralph */ 5*11477Sralph 6*11477Sralph #include "2648.h" 7*11477Sralph 8*11477Sralph line(x1, y1, x2, y2) 9*11477Sralph int x1, y1, x2, y2; 10*11477Sralph { 11*11477Sralph #ifdef TRACE 12*11477Sralph if (trace) 13*11477Sralph fprintf(trace, "line((%d, %d), (%d, %d)),", x1, y1, x2, y2); 14*11477Sralph #endif 15*11477Sralph if (x1==_penx && y1==_peny) { 16*11477Sralph /* 17*11477Sralph * Get around a bug in the HP terminal where one point 18*11477Sralph * lines don't get drawn more than once. 19*11477Sralph */ 20*11477Sralph move(x1, y1+1); 21*11477Sralph sync(); 22*11477Sralph } 23*11477Sralph move(x1, y1); 24*11477Sralph draw(x2, y2); 25*11477Sralph } 26