#define bitmask bitWritePos
*/
+#define GetDataSize GetTagLen
+#define GetDataSizePtr GetTagLenPtr
TAG * swf_PrevTag(TAG * t) { return t->prev; }
int swf_GetFrameNo(TAG * t) { return t->frame; }
U16 swf_GetTagID(TAG * t) { return t->id; }
-U32 swf_GetDataSize(TAG * t) { return t->len; }
-U8* swf_GetDataSizePtr(TAG * t) { return &(t->data[t->len]); }
+U32 swf_GetTagLen(TAG * t) { return t->len; }
+U8* swf_GetTagLenPtr(TAG * t) { return &(t->data[t->len]); }
U32 swf_GetTagPos(TAG * t) { return t->pos; }
// Basic Data Access Functions
swf_SetU16(&t1,swf->frameRate);
swf_SetU16(&t1,swf->frameCount);
- l = swf_GetDataSize(&t1);
+ l = swf_GetTagLen(&t1);
swf->fileSize = l+len;
t1.len = 4; // bad & ugly trick !
swf_SetU32(&t1,swf->fileSize);
int swf_GetFrameNo(TAG * t); // should be renamed to TagGetFrame
U16 swf_GetTagID(TAG * t); // ... TagGetID
-U32 swf_GetDataSize(TAG * t); // ... TagGetDataSize
-U8* swf_GetDataSizePtr(TAG * t);
+U32 swf_GetTagLen(TAG * t); // ... TagGetTagLen
+U8* swf_GetTagLenPtr(TAG * t);
U32 swf_GetBits(TAG * t,int nbits);
S32 swf_GetSBits(TAG * t,int nbits);
logf("<verbose> Font %s has %d used characters",fontid, usednum);
TAG*ftag = swf_InsertTag(swf.firstTag,ST_DEFINEFONT);
swf_SetU16(ftag, this->swfid);
- int initpos = swf_GetDataSize(ftag);
+ int initpos = swf_GetTagLen(ftag);
swfmatrix m;
m.m11 = m.m22 = 1;
m.m21 = m.m12 = 0;
for(t=0;t<swfcharpos;t++)
{
- ptr[t] = swf_GetDataSize(ftag);
+ ptr[t] = swf_GetTagLen(ftag);
swf_SetU16(ftag, 0x1234);
}
for(t=0;t<swfcharpos;t++)
{
- *(U16*)&ftag->data[ptr[t]] = swf_GetDataSize(ftag)-initpos;
+ *(U16*)&ftag->data[ptr[t]] = swf_GetTagLen(ftag)-initpos;
swflastx=0;
swflasty=0;
swf_SetU8(ftag,0x10); //0 fill bits, 0 linestyle bits