X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxpoly%2Fconvert.c;h=0a2cc93bbf9c45bf020d42028eb793e3c6cb2975;hb=fc8854e5ed42dbcef96d25eb851b9873707a15ff;hp=39517d7c7743043eb6f4a23f434bd91cd63c31cb;hpb=ff04f157cec57e3a19a7078040e1d9604812d32c;p=swftools.git diff --git a/lib/gfxpoly/convert.c b/lib/gfxpoly/convert.c index 39517d7..0a2cc93 100644 --- a/lib/gfxpoly/convert.c +++ b/lib/gfxpoly/convert.c @@ -92,7 +92,7 @@ static void convert_file(const char*filename, polywriter_t*w, double gridsize) break; double x,y; char s[256]; - if(sscanf(line, "%lf %lf %s", &x, &y, &s) == 3) { + if(sscanf(line, "%lf %lf %s", &x, &y, (char*)&s) == 3) { if(s && !strcmp(s,"moveto")) { w->moveto(w, convert_coord(x,z), convert_coord(y,z)); count++; @@ -513,7 +513,7 @@ gfxline_t*gfxline_from_gfxpoly(gfxpoly_t*poly) return mkgfxline(poly, 0); } -gfxline_t*gfxline_from_gfxpoly_updown(gfxpoly_t*poly) +gfxline_t*gfxline_from_gfxpoly_with_direction(gfxpoly_t*poly) { return mkgfxline(poly, 1); }