- Timestamp:
- Oct 14, 2010, 2:07:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/Ohana/src/kapa2/src/DrawObjects.c
r27530 r29410 517 517 } 518 518 if (object[0].ptype == 100) { /* connect a pair of points */ 519 520 double X0 = graph[0].axis[0].fx; 521 double X1 = graph[0].axis[0].fx + graph[0].axis[0].dfx; 522 double Y0 = graph[0].axis[1].fy; 523 double Y1 = graph[0].axis[1].fy + graph[0].axis[1].dfy; 524 519 525 for (i = 0; i + 1 < object[0].Npts; i+=2) { 520 526 if (!(finite(x[i]) && finite(y[i]))) continue; … … 524 530 sx2 = x[i+1]*mxi + y[i+1]*mxj + bx; 525 531 sy2 = x[i+1]*myi + y[i+1]*myj + by; 526 DrawLine (sx1, sy1, sx2, sy2);532 ClipLine (sx1, sy1, sx2, sy2, X0, Y0, X1, Y1); 527 533 } 528 534 } … … 674 680 } 675 681 if (object[0].ptype == 100) { 682 double X0 = graph[0].axis[0].fx; 683 double X1 = graph[0].axis[0].fx + graph[0].axis[0].dfx; 684 double Y0 = graph[0].axis[1].fy; 685 double Y1 = graph[0].axis[1].fy + graph[0].axis[1].dfy; 686 676 687 for (i = 0; i + 1 < object[0].Npts; i+=2) { 677 688 if (!(finite(x[i]) && finite(y[i]))) continue; … … 680 691 sx2 = x[i+1]*mxi + y[i+1]*mxj + bx; 681 692 sy2 = x[i+1]*myi + y[i+1]*myj + by; 682 DrawLine (sx1, sy1, sx2, sy2);693 ClipLine (sx1, sy1, sx2, sy2, X0, Y0, X1, Y1); 683 694 } 684 695 }
Note:
See TracChangeset
for help on using the changeset viewer.
