X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxfilter.c;h=a7ee6c46d29cc7fe928a487a391a104cc6a8cb98;hp=24b969e7634b071c1ece1f78d940d1f92f628099;hb=9e1987ca321def20b6f756bb5955d41c78c45c05;hpb=905772d04a1c2dd73802c6dde5bd50e9701b7af6 diff --git a/lib/gfxfilter.c b/lib/gfxfilter.c index 24b969e..a7ee6c4 100644 --- a/lib/gfxfilter.c +++ b/lib/gfxfilter.c @@ -305,7 +305,7 @@ static gfxresult_t* twopass_finish(gfxdevice_t*dev) } i->pass++; - gfxresult_record_replay(r, dev); + gfxresult_record_replay(r, dev, 0); r->destroy(r); return twopass_finish(dev); @@ -361,7 +361,7 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) *colon = 0; char*newcmd = 0; char param = 0; - + /* fixme: change this from a dict_t to gfxparams_t? */ if(eq && eq < colon) { // parameter *eq = 0; @@ -377,6 +377,7 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) if(!param || lastitem) { if(!cmd && lastitem) cmd = newcmd; + assert(cmd); gfxfilterbase_t*f = 0; if(!strcmp(cmd, "maketransparent")) { char*alphastr = dict_lookup(params, "alpha"); @@ -387,6 +388,9 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) } else if(!strcmp(cmd, "remove_font_transforms")) { f = malloc(sizeof(gfxtwopassfilter_t)); gfxtwopassfilter_remove_font_transforms_init((gfxtwopassfilter_t*)f); + } else if(!strcmp(cmd, "vectors_to_glyphs")) { + f = malloc(sizeof(gfxtwopassfilter_t)); + gfxtwopassfilter_vectors_to_glyphs_init((gfxtwopassfilter_t*)f); } else if(!strcmp(cmd, "one_big_font")) { f = malloc(sizeof(gfxtwopassfilter_t)); gfxtwopassfilter_one_big_font_init((gfxtwopassfilter_t*)f);