From 6a8095cfa193eb3ed348f99ac4cd1553e0aba20b Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 20 Feb 2007 18:50:50 +0000 Subject: [PATCH] swf gfxsource --- lib/swf/Makefile.in | 3 +++ lib/swf/swf.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 1.7.10.4