From ac7ab52d6bea63bca0692cac4c32b9a4456b34a7 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 5 Sep 2004 15:57:37 +0000 Subject: [PATCH] gcc 2.95.x fixes. --- src/swfdump.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/swfdump.c b/src/swfdump.c index 6256e49..75ac80f 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -561,8 +561,10 @@ void handlePlaceObject(TAG*tag, char*prefix) U16 id = swf_GetU16(tag); U16 depth = swf_GetU16(tag); - MATRIX matrix; swf_GetMatrix(tag, &matrix); - CXFORM cxform; swf_GetCXForm(tag, &cxform, 0); + MATRIX matrix; + CXFORM cxform; + swf_GetMatrix(tag, &matrix); + swf_GetCXForm(tag, &cxform, 0); swf_SetU8(tag2, 14); swf_SetU16(tag2, depth); @@ -599,13 +601,14 @@ char* linestyle2str(LINESTYLE*style) void handleShape(TAG*tag, char*prefix) { SHAPE2 shape; + SHAPELINE*line; + int t,max; + tag->pos = 0; tag->readBit = 0; swf_ParseDefineShape(tag, &shape); - SHAPELINE*line; - int t; - int max = shape.numlinestyles > shape.numfillstyles?shape.numlinestyles:shape.numfillstyles; + max = shape.numlinestyles > shape.numfillstyles?shape.numlinestyles:shape.numfillstyles; if(max) printf("%s | fillstyles(%02d) linestyles(%02d)\n", prefix, -- 1.7.10.4