boxf b;
pointf pt;
field_t *fld;
- int isPoly;
+ bool isPoly;
pointf* verts = NULL;
pointf vs[4];
pointf p;
obs = gv_alloc(sizeof(Ppoly_t));
poly = ND_shape_info(n);
if (isOrtho) {
- isPoly = 1;
+ isPoly = true;
sides = 4;
verts = vs;
margin.x = margin.y = 0;
}
}
else if (poly->sides >= 3) {
- isPoly = 1;
+ isPoly = true;
sides = poly->sides;
verts = poly->vertices;
margin.x = pmargin->x;
margin.y = pmargin->y;
} else { /* ellipse */
- isPoly = 0;
+ isPoly = false;
sides = 8;
adj = drand48() * .01;
}