| # | Line 4 | Line 4 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 4 | #include "pictool.h" | |
| 5 | #include "g3sphere.h" | |
| 6 | #include <math.h> | |
| 7 | < | #include <string.h> |
| 7 | > | #include "rtio.h" |
| 8 | ||
| 9 | #define index strchr | |
| 10 | ||
| # | Line 689 | Line 689 | int pict_locate(pict* p,FVECT pt,int* x,int* y) | |
| 689 | return 0; | |
| 690 | } | |
| 691 | ||
| 692 | < | viewloc(pp,&(p->view),pt); |
| 693 | < | if (pp[2] < 0) |
| 692 | > | if (viewloc(pp,&(p->view),pt) <= 0) |
| 693 | return 0; | |
| 694 | loc2pix(res,&(p->resol),pp[0],pp[1]); | |
| 695 | *x = res[0]; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |