X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgfxpoly%2Ftest.c;h=4ab1004b289401b1bbb5b025ad9cd99ad8af90d1;hb=de3641737991ed13571eb947068472cf73001032;hp=aff9208ede9b49ae9ed7e00065706a2bebff5f40;hpb=ae7c92fe5721f97e786a8bbe9153eadbf292460d;p=swftools.git diff --git a/lib/gfxpoly/test.c b/lib/gfxpoly/test.c index aff9208..4ab1004 100644 --- a/lib/gfxpoly/test.c +++ b/lib/gfxpoly/test.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include "../gfxtools.h" @@ -53,13 +52,13 @@ gfxline_t* mkchessboard() unsigned int r = 0; int spacing = 20; - //int num_caros = 40; - //int l = 5; - //char do_centerpiece=1; + int num_caros = 40; + int l = 5; + char do_centerpiece=1; - int num_caros = 4; - int l=1; - char do_centerpiece=0; + //int num_caros = 4; + //int l=1; + //char do_centerpiece=0; for(x=-l;x<=l;x++) for(y=-l;y<=l;y++) { @@ -251,7 +250,6 @@ void test3() m.m11 = cos(t*M_PI/180.0); m.tx = RANGE*1.41/2; m.ty = RANGE*1.41/2; - printf("%d\n", t); gfxline_t*l = gfxline_clone(line); gfxline_transform(l, &m); @@ -337,7 +335,7 @@ void test4() char* filename = allocprintf("%s/%s", dir, file->d_name); windrule_t*rule = &windrule_evenodd; - gfxpoly_t*poly = gfxpoly_from_file(filename, 0.01); + gfxpoly_t*poly = gfxpoly_from_file(filename, 1.0);//0.01); free(filename); double zoom = 1.0; @@ -487,5 +485,5 @@ void test5() int main() { - test0(); + test3(); }