X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=60edecb9503ce5e09ba9fa0297aa124ed07c3a25;hb=aecc804e3bd0642924c2225b76f483c6f32491c7;hp=b337eb0ffce1877b10ef8be79570810e06a7a22b;hpb=13ca807bd5e0595b985bd767e7fffb5093c50e58;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index b337eb0..60edecb 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -151,6 +151,9 @@ typedef struct _TAG // NEVER access a Tag-Struct directly ! } TAG, * LPTAG; +#define swf_ResetReadBits(tag) if (tag->readBit) { tag->pos++; tag->readBit = 0; } +#define swf_ResetWriteBits(tag) if (tag->writeBit) { tag->writeBit = 0; } + typedef struct _SOUNDINFO { U8 stop; @@ -557,7 +560,7 @@ int swf_FontSetID(SWFFONT * f,U16 id); int swf_FontReduce(SWFFONT * f,FONTUSAGE * use); int swf_FontInitUsage(SWFFONT * f,FONTUSAGE * use); -int swf_FontUse(FONTUSAGE * use,U8 * s); +int swf_FontUse(SWFFONT* f,FONTUSAGE * use,U8 * s); int swf_FontSetDefine(TAG * t,SWFFONT * f); int swf_FontSetDefine2(TAG * t,SWFFONT * f); @@ -589,7 +592,7 @@ void swf_SetEditText(TAG*tag, U16 flags, SRECT r, char*text, RGBA*color, SRECT swf_SetDefineText(TAG*tag, SWFFONT*font, RGBA*rgb, char*text, int scale); -void swf_DrawText(drawer_t*draw, SWFFONT*font, char*text); +void swf_DrawText(drawer_t*draw, SWFFONT*font, int size, char*text); // swffont.c @@ -597,6 +600,8 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename); SWFFONT* swf_LoadT1Font(char*filename); SWFFONT* swf_LoadFont(char*filename); +void swf_SetLoadFontParameters(int scale, int skip_unused); + // swfdump.c void swf_DumpHeader(FILE * f,SWF * swf);