gcc 2.95.x fixes
authorkramm <kramm>
Sat, 23 Jul 2005 08:26:24 +0000 (08:26 +0000)
committerkramm <kramm>
Sat, 23 Jul 2005 08:26:24 +0000 (08:26 +0000)
src/swfbbox.c

index 52296f8..712c2d0 100644 (file)
@@ -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;