[Swfed-svn] swfed-svn [469] author: yoya

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 25日 (金) 20:54:31 JST


Revision: 469
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=469
Author:   yoya
Date:     2011-03-25 20:54:31 +0900 (Fri, 25 Mar 2011)

Log Message:
-----------
author: yoya
DefineShape4, DefineMorphShape2 に対して CID 取得/入れ替えだけ対応

Modified Paths:
--------------
    trunk/src/swf_tag.c
    trunk/src/swf_tag_shape.c
    trunk/src/swf_tag_shape.h


-------------- next part --------------
Modified: trunk/src/swf_tag.c
===================================================================
--- trunk/src/swf_tag.c	2011-03-25 10:34:47 UTC (rev 468)
+++ trunk/src/swf_tag.c	2011-03-25 11:54:31 UTC (rev 469)
@@ -61,8 +61,8 @@
     { 73, "DefineFontAlignZones", NULL },
     { 74, "CSMTextSettings", NULL },
     { 75, "DefineFont3", NULL } ,
-    { 83, "DefineShape4", NULL /*swf_tag_shape_detail_handler*/ },
-    { 84, "DefineMorphShape2", NULL /*swf_tag_shape_detail_handler*/ },
+    { 83, "DefineShape4",  swf_tag_shape_cid_handler },
+    { 84, "DefineMorphShape2", swf_tag_shape_cid_handler },
     { 88, "DefineFontName", NULL } ,
     { 777,"Reflex", NULL } ,
 };

Modified: trunk/src/swf_tag_shape.c
===================================================================
--- trunk/src/swf_tag_shape.c	2011-03-25 10:34:47 UTC (rev 468)
+++ trunk/src/swf_tag_shape.c	2011-03-25 11:54:31 UTC (rev 469)
@@ -25,6 +25,18 @@
     return &shape_detail_handler;
 }
 
+swf_tag_detail_handler_t *
+swf_tag_shape_cid_handler(void) {
+    shape_detail_handler.create   = NULL;
+    shape_detail_handler.input    = NULL;
+    shape_detail_handler.get_cid     = swf_tag_shape_get_cid_detail;
+    shape_detail_handler.replace_cid = swf_tag_shape_replace_cid_detail;
+    shape_detail_handler.output   = NULL;
+    shape_detail_handler.print    = NULL;
+    shape_detail_handler.destroy  = NULL;
+    return &shape_detail_handler;
+}
+
 void *
 swf_tag_shape_create_detail(void) {
     swf_tag_shape_detail_t *swf_tag_shape;

Modified: trunk/src/swf_tag_shape.h
===================================================================
--- trunk/src/swf_tag_shape.h	2011-03-25 10:34:47 UTC (rev 468)
+++ trunk/src/swf_tag_shape.h	2011-03-25 11:54:31 UTC (rev 469)
@@ -45,6 +45,7 @@
 } swf_tag_shape_detail_t;
 
 extern swf_tag_detail_handler_t *swf_tag_shape_detail_handler(void);
+extern swf_tag_detail_handler_t *swf_tag_shape_cid_handler(void);
 
 extern void *swf_tag_shape_create_detail(void);
 extern int swf_tag_shape_input_detail(swf_tag_t *tag, struct swf_object_ *swf);



Swfed-svn メーリングリストの案内
Back to archive index