s/GetDataSizePtr/GetTagLenPtr/g
s/ObjectPlace/ObjectSet/g
(s/GetFrameNo/GetTagFrameNo/g ?)
- * swfshape.c: the shape parameter is mostly unused. so are px, py.
- * swf_SetBits() crashes if the tag has no data allocated yet.
printf(" f->glyph = (SWFGLYPH*)malloc(sizeof(SWFGLYPH)*%d);\n",f->numchars);
printf(" f->glyph2ascii = (U16*)malloc(sizeof(U16)*%d);\n",f->numchars);
printf(" f->ascii2glyph = (int*)malloc(sizeof(int)*%d);\n",f->maxascii);
- printf(" memset(f->ascii2glyph, -1, sizeof(int)*%d)\n\n", f->maxascii);
+ printf(" memset(f->ascii2glyph, -1, sizeof(int)*%d);\n\n", f->maxascii);
for (i=0;i<f->numchars;i++)
if (f->glyph[i].shape)
swf_SetBits(t,x,b);
swf_SetBits(t,y,b);
- if (s)
- { s->px = x;
- s->py = y;
- }
return 0;
}
swf_SetBits(t,b,5);
swf_SetBits(t,x,b);
swf_SetBits(t,y,b);
- s->px = x;
- s->py = y;
if (fill0) swf_SetBits(t,fill0,s->bits.fill);
if (fill1) swf_SetBits(t,fill1,s->bits.fill);
swf_SetBits(t,1,1);
swf_SetBits(t,x,b);
swf_SetBits(t,y,b);
- if (s)
- { s->px += x;
- s->py += y;
- }
return 0;
}
swf_SetBits(t, b-2, 4);
swf_SetBits(t,1,2);
swf_SetBits(t,y,b);
- s->py += y;
- }
+ }
else
{ b = swf_CountBits(x,2);
if(b<2)
swf_SetBits(t, b-2, 4);
swf_SetBits(t,0,2);
swf_SetBits(t,x,b);
- s->px += x;
}
return 0;
}
swf_SetBits(t,ax,b);
swf_SetBits(t,ay,b);
- if (s)
- { s->px += x+ax;
- s->py += y+ay;
- }
return 0;
}
if (t)
{ memset(t,0x00,sizeof(TAG));
t->id = id;
- t->writeBit = 0x80;
if (after)
{ t->frame = after->frame;
{ LINESTYLE * data;
U16 n;
} linestyle;
- // note: changes of shape structure
- struct // lead to incompatible .efont formats
+
+ struct
{ FILLSTYLE * data;
U16 n;
} fillstyle;
-
- S32 px;
- S32 py;
-
+
struct
{ U16 fill;
U16 line;
} bits;
-
+ // used by Get/SetSimpleShape and glyph handling
U8 * data;
U32 bitlen; // length of data in bits
} SHAPE, * LPSHAPE;