git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4251167
)
added some comments
author
kramm
<kramm>
Sun, 6 Mar 2005 20:25:13 +0000
(20:25 +0000)
committer
kramm
<kramm>
Sun, 6 Mar 2005 20:25:13 +0000
(20:25 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
ee7bebb
..
b4cb4ce
100644
(file)
--- 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;
}
FIXNULL(character),charnr, u, FIXNULL((char*)swffont->name), swffont->numchars);
return 0;
}
+ /*if(swffont->glyph[charid].shape->bitlen <= 16) {
+ msg("<warning> 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);
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);
/*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;t<num_colors;t++) {
+ printf("%02x%02x%02x%02x ",
+ pal[t].r, pal[t].g, pal[t].b, pal[t].a);
+ if((t&7)==7)
+ printf("\n");
+ }
+ printf("\n");*/
+
i->tag = swf_AddImage(i->tag, bitid, mem, sizex, sizey, config_jpegquality);
if(newpic)
i->tag = swf_AddImage(i->tag, bitid, mem, sizex, sizey, config_jpegquality);
if(newpic)