X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfbbox.c;h=712c2d021d8696133e65ee98dad98eec3f0912b7;hb=6dea5761ff73bf30cf08f8cfed637f4ad12a93a5;hp=52296f81ba5e923a7a458d4e90dc14434a98b78f;hpb=8abfd308ae4bb43437e79e716b58d54e66f254f9;p=swftools.git diff --git a/src/swfbbox.c b/src/swfbbox.c index 52296f8..712c2d0 100644 --- a/src/swfbbox.c +++ b/src/swfbbox.c @@ -232,8 +232,9 @@ static placement_t* readPlacements(SWF*swf) while(tag) { if(tag->id == ST_PLACEOBJECT || tag->id == ST_PLACEOBJECT2) { SWFPLACEOBJECT*po = rfx_alloc(sizeof(SWFPLACEOBJECT)); + int id; swf_GetPlaceObject(tag, po); - int id = po->id; + id = po->id; if(po->move) { fprintf(stderr, "MOVE tags not supported with -c"); } @@ -354,7 +355,7 @@ static void textcallback(void*self, int*chars, int*xpos, int nr, int fontid, int /* not tested yet- the matrix/fontsize calculation is probably all wrong */ int x = xstart + xpos[t]; int y = ystart; - int ch; + int ch = 0; SRECT newglyphbbox, glyphbbox = font->layout->bounds[chars[t]]; MATRIX m = bounds->m; SPOINT p;