added flash 8 fill styles
authorkramm <kramm>
Sat, 13 Jan 2007 17:25:59 +0000 (17:25 +0000)
committerkramm <kramm>
Sat, 13 Jan 2007 17:25:59 +0000 (17:25 +0000)
src/swfdump.c

index 3257059..4bb5284 100644 (file)
@@ -600,14 +600,14 @@ char* fillstyle2str(FILLSTYLE*style)
        case 0x10: case 0x12:
            sprintf(stylebuf, "GRADIENT (%d steps)", style->gradient.num);
            break;
-       case 0x40: 
+       case 0x40: case 0x42:
            /* TODO: display information about that bitmap */
-           sprintf(stylebuf, "BITMAPt %d", style->id_bitmap);
+           sprintf(stylebuf, "BITMAPt%s %d", (style->type&2)?"n":"", style->id_bitmap);
            /* TODO: show matrix */
            break;
-       case 0x41:
+       case 0x41: case 0x43:
            /* TODO: display information about that bitmap */
-           sprintf(stylebuf, "BITMAPc %d", style->id_bitmap);
+           sprintf(stylebuf, "BITMAPc%s %d", (style->type&2)?"n":"", style->id_bitmap);
            /* TODO: show matrix */
            break;
        default: