X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=3621321b4d885500530b59e24f89bfdefe9c6f4a;hb=a6f4bf74f964e101e25f0234ebcb3c3dde175df4;hp=e7b89a19132c1e1a068795841669a67c127c1754;hpb=ecdb4acdd5735e33b7ae86b18a8d5bba50766a58;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index e7b89a1..3621321 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; @@ -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