X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfc.c;h=a4102869b21c66d93ad5d555795601a30a698751;hp=c9d44204f59a409a6b874f24cb10cdfe3e0cc61c;hb=1b92dcdf739c6b827ac037ce74a9d9df0fc857a8;hpb=b729cfae5bbcb8a6721626ff63c3c7aaeab0dfa7 diff --git a/src/swfc.c b/src/swfc.c index c9d4420..a410286 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -926,13 +926,15 @@ GRADIENT parseGradient(const char*str) memset(&gradient, 0, sizeof(GRADIENT)); while(*p) { char*posstr,*colorstr; + float pos; + RGBA color; posstr = gradient_getToken(&p); if(!*posstr) break; - float pos = parsePercent(posstr); + pos = parsePercent(posstr); if(!*p) syntaxerror("Error in shape data: Color expected after %s", posstr); colorstr = gradient_getToken(&p); - RGBA color = parseColor(colorstr); + color = parseColor(colorstr); if(gradient.num == sizeof(gradient.ratios)/sizeof(gradient.ratios[0])) { warning("gradient record too big- max size is 8, rest ignored"); break;