X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=5ebe89f4a042f70cb16a9cfaecfbd51b46af0d1a;hb=33b4efceb35f7582426665aba920fd950edc0602;hp=e5901cb146997579e0da21f13aee042137655c82;hpb=8ff8aea6d9d76a443ab2391671af79e91f780bbc;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index e5901cb..5ebe89f 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -80,7 +80,7 @@ int swf_FontExtract_DefineFont(int id,SWFFONT * f,TAG * t) fid = swf_GetU16(t); if ((!id)||(id==fid)) - { U16 of,*ofs; + { U16 of; int n,i; id = fid; @@ -392,7 +392,7 @@ int swf_FontExtract(SWF * swf,int id,SWFFONT * * font) int swf_FontSetID(SWFFONT * f,U16 id) { if (!f) return -1; f->id = id; return 0; } int swf_FontReduce(SWFFONT * f,FONTUSAGE * use) -{ int i,j,num; +{ int i,j; if ((!f)||(!use)) return -1; j = 0; @@ -927,7 +927,8 @@ void swf_WriteFont(SWFFONT*font, char* filename) rgb.b = 0x00; for(y=0;y<=((font->maxascii-1)/16);y++) { - int c=0,lastx=-1, firstx=0; + int c=0,lastx=-1; + /* TODO: firstx?? */ for(x=0;x<16;x++) { int g = (y*16+xmaxascii)?font->ascii2glyph[y*16+x]:-1; if(g>=0 && font->glyph[g].shape) {