X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.c;h=d02ce5eb6e37a9fb54ba377e1c2a722f54dd549a;hp=36304ae009a490689fb3abfb9845a13e65a7ab69;hb=f9777d63606840b68fc86df0a96ee1a79ab04e69;hpb=afeee73172d508d2e7e4efd028939e36356fbe8e diff --git a/lib/gfxpoly/poly.c b/lib/gfxpoly/poly.c index 36304ae..d02ce5e 100644 --- a/lib/gfxpoly/poly.c +++ b/lib/gfxpoly/poly.c @@ -194,9 +194,9 @@ char gfxpoly_check(gfxpoly_t*poly) DICT_ITERATE_ITEMS(d, point_t*, p, void*, c) { int count = (ptroff_t)c; if(count&1) { - fprintf(stderr, "Point (%f,%f) occurs %d times\n", p->x*poly->gridsize, p->y*poly->gridsize, count); + fprintf(stderr, "Point (%d,%d) occurs %d times\n", p->x, p->y, count); dict_destroy(d); - return 0; + assert(count%2 == 0); } } dict_destroy(d); @@ -1376,8 +1376,8 @@ gfxpoly_t* gfxpoly_process(gfxpoly_t*poly1, gfxpoly_t*poly2, windrule_t*windrule } #endif - //add_horizontals(p, &windrule_evenodd, context); // output is always even/odd - add_horizontals(p, windrule, context); + add_horizontals(p, &windrule_evenodd, context); // output is always even/odd + //add_horizontals(p, windrule, context); return p; }