X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Ftest_stroke.c;h=06ae2b69937e092830a223ce47ccde61aa2a2568;hp=0e292cd6c32e5ed48baafe21eff2d756632909cb;hb=eac1308d474f42fb9a7f8c89b1a02ff63c7c60e2;hpb=7512d30cebc1989f52225728d2541dbb82df49ea diff --git a/lib/gfxpoly/test_stroke.c b/lib/gfxpoly/test_stroke.c index 0e292cd..06ae2b6 100644 --- a/lib/gfxpoly/test_stroke.c +++ b/lib/gfxpoly/test_stroke.c @@ -77,7 +77,7 @@ int test_stroke1() //gfxpoly_t*p = gfxpoly_fromstroke(l, width, gfx_capRound, gfx_joinRound, 500); gfxpoly_t*p1 = gfxpoly_from_stroke(l, width, gfx_capRound, gfx_joinRound, 500, 0.05); - assert(gfxpoly_check(p1)); + assert(gfxpoly_check(p1, 1)); //gfxpoly_t*p2 = gfxpoly_from_fill(f, 0.05); gfxline_t*l2 = gfxline_clone(l); @@ -92,10 +92,10 @@ int test_stroke1() s, -c, -(350+x1)*s+(350+y1)*c+350}; gfxline_transform(l2, &m); gfxpoly_t*p2 = gfxpoly_from_stroke(l2, width, gfx_capRound, gfx_joinRound, 500, 0.05); - assert(gfxpoly_check(p2)); + assert(gfxpoly_check(p2, 1)); gfxpoly_t*p3 = gfxpoly_intersect(p1, p2); - assert(gfxpoly_check(p3)); + assert(gfxpoly_check(p3, 1)); //gfxpoly_t*p4 = gfxpoly_from_fill(f, 0.05); //gfxpoly_t*p5 = gfxpoly_intersect(p1, p4);