From: kramm Date: Sun, 6 Mar 2005 20:25:13 +0000 (+0000) Subject: added some comments X-Git-Tag: release-0-7-0~169 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=7279df145c5d85e7abc356c1fed91d5dbde686eb;p=swftools.git added some comments --- diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index ee7bebb..b4cb4ce 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -701,6 +701,12 @@ static int drawchar(struct swfoutput*obj, SWFFONT *swffont, char*character, int FIXNULL(character),charnr, u, FIXNULL((char*)swffont->name), swffont->numchars); return 0; } + /*if(swffont->glyph[charid].shape->bitlen <= 16) { + msg(" Character '%s' (c=%d,u=%d), glyph %d in current charset (%s, %d characters) is empty", + FIXNULL(character),charnr, u, charid, FIXNULL((char*)swffont->name), swffont->numchars); + return 0; + }*/ + if(i->shapeid>=0) endshape(obj); @@ -2128,6 +2134,17 @@ static int add_image(swfoutput_internal*i, gfximage_t*img, int targetwidth, int /*newsizex, newsizey,*/ num_colors>256?">":"", num_colors>256?256:num_colors); + /*RGBA* pal = (RGBA*)rfx_alloc(sizeof(RGBA)*num_colors); + swf_ImageGetNumberOfPaletteEntries(mem,sizex,sizey,pal); + int t; + for(t=0;ttag = swf_AddImage(i->tag, bitid, mem, sizex, sizey, config_jpegquality); if(newpic)