From: kramm Date: Tue, 20 Feb 2007 18:50:50 +0000 (+0000) Subject: swf gfxsource X-Git-Tag: release-0-8-1~28 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=6a8095cfa193eb3ed348f99ac4cd1553e0aba20b swf gfxsource --- diff --git a/lib/swf/Makefile.in b/lib/swf/Makefile.in index d938933..e198ce2 100644 --- a/lib/swf/Makefile.in +++ b/lib/swf/Makefile.in @@ -17,6 +17,9 @@ libswf_objects = swf.$(O) $(AR) r ../libswf$(A) $(RANLIB) ../libswf$(A) +swfrender: $(libswf_objects) ../../src/swfrender.c ../devices/render.$(O) + $(L) ../../src/swfrender.c $(libswf_objects) ../librfxswf$(A) ../gfxtools.$(O) ../png.$(O) ../devices/render.$(O) -o swfrender $(LIBS) + install: uninstall: diff --git a/lib/swf/swf.c b/lib/swf/swf.c index a5f002f..27854cd 100644 --- a/lib/swf/swf.c +++ b/lib/swf/swf.c @@ -241,7 +241,7 @@ static map16_t* extractFrame(TAG*startTag, int frame_to_extract) map16_enumerate(depthmap, increaseAge, 0); } } - return 0; + return depthmap; } // ---- render handling ---- @@ -539,6 +539,7 @@ gfxdocument_t*swf_open(char*filename) i->width = (swf.movieSize.xmax - swf.movieSize.xmin) / 20; i->height = (swf.movieSize.ymax - swf.movieSize.ymin) / 20; + swf_doc->num_pages = swf.frameCount; swf_doc->internal = i; swf_doc->get = 0; swf_doc->destroy = swf_doc_destroy;