624f4b612627304cc2424be2d1ab7a314ab651a2 kent Tue May 27 10:43:34 2014 -0700 Adding spacing for readability around some copyrights notices that needed it. diff --git src/lib/gfxPoly.c src/lib/gfxPoly.c index 48d5419..d28ef09 100644 --- src/lib/gfxPoly.c +++ src/lib/gfxPoly.c @@ -1,49 +1,50 @@ /* gfxPoly - two dimensional polygon. */ + #include "common.h" #include "gfxPoly.h" struct gfxPoly *gfxPolyNew() /* Create new (empty) polygon */ { struct gfxPoly *poly; AllocVar(poly); return poly; } void gfxPolyFree(struct gfxPoly **pPoly) /* Free up resources associated with polygon */ { struct gfxPoly *poly = *pPoly; if (poly != NULL) { if (poly->lastPoint != NULL) { poly->lastPoint->next = NULL; slFreeList(&poly->ptList); } freez(pPoly); } } void gfxPolyAddPoint(struct gfxPoly *poly, int x, int y) /* Add point to polygon. */ { struct gfxPoint *pt; poly->ptCount += 1; AllocVar(pt); pt->x = x; pt->y = y; if (poly->ptList == NULL) { poly->ptList = poly->lastPoint = pt; pt->next = pt; } else { poly->lastPoint->next = pt; pt->next = poly->ptList; poly->lastPoint = pt; } }