From: kramm <kramm>
Date: Sat, 13 Jan 2007 17:24:03 +0000 (+0000)
Subject: added parsing for flash 8 fill styles
X-Git-Tag: release-0-8-0~52
X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=b473a770891a181a6811c48f0ab6c44ccd080073;p=swftools.git

added parsing for flash 8 fill styles
---

diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c
index b53e2e8..9bf93ac 100644
--- a/lib/modules/swfshape.c
+++ b/lib/modules/swfshape.c
@@ -543,7 +543,7 @@ static void parseFillStyleArray(TAG*tag, SHAPE2*shape)
                 else 
                     swf_GetRGB(tag, &dest->color);
             }
-            else if(type == 0x10 || type == 0x12)
+            else if(type == 0x10 || type == 0x11 || type == 0x12 || type == 0x13)
             {
                 /* linear/radial gradient fill */
                 swf_ResetReadBits(tag);
@@ -551,7 +551,7 @@ static void parseFillStyleArray(TAG*tag, SHAPE2*shape)
                 swf_ResetReadBits(tag);
                 swf_GetGradient(tag, &dest->gradient, num>=3?1:0);
             }
-            else if(type == 0x40 || type == 0x41)
+            else if(type == 0x40 || type == 0x41 || type == 0x42 || type == 0x43)
             {
                 /* bitmap fill */
                 swf_ResetReadBits(tag);