30 struct MapPoly *poly, *test_poly;
41 for (poly =
html.head; poly !=
NULL; poly = poly->next_poly) {
43 for (test_poly =
html.head; test_poly !=
NULL;
45 if (poly == test_poly) {
50 for (i = 0; i < poly->num_pts && inside; i++) {
53 test_poly->
y_pts, poly->x_pts[i], poly->y_pts[i]);
69 fprintf(
html.output,
"#base _base_\n#default _default_\n");
76 fprintf(
html.output,
"<MAP NAME=\"map\">\n");
84 for (poly =
html.head; poly !=
NULL; poly = poly->next_poly) {
85 if (poly->num_pts >= 3) {
90 fprintf(
html.output,
"poly %s", poly->url);
91 for (i = 0; i < poly->num_pts; i++) {
92 fprintf(
html.output,
" %d,%d", poly->x_pts[i],
95 fprintf(
html.output,
" %d,%d", poly->x_pts[0], poly->y_pts[0]);
96 fprintf(
html.output,
"\n");
100 fprintf(
html.output,
"%s", poly->url);
101 for (i = 0; i < poly->num_pts; i++) {
102 fprintf(
html.output,
" %d %d", poly->x_pts[i],
105 fprintf(
html.output,
" %d %d", poly->x_pts[0], poly->y_pts[0]);
106 fprintf(
html.output,
"\n");
111 "<AREA SHAPE=\"POLY\"\n HREF=\"%s\"\n ALT=\"%s\"\n "
113 poly->url, poly->url);
114 for (i = 0; i < poly->num_pts; i++) {
116 fprintf(
html.output,
", ");
123 fprintf(
html.output,
"%d,%d", poly->x_pts[i],
126 fprintf(
html.output,
", %d,%d", poly->x_pts[0], poly->y_pts[0]);
127 fprintf(
html.output,
"\">\n");
145 "<AREA SHAPE=\"RECT\" NOHREF COORDS=\"%d,%d %d,%d\">\n", 0, 0,
147 fprintf(
html.output,
"</MAP>\n");