void write_changepos(TAG*output, TAG*tag, int movex, int movey, float scalex, float scaley, int scalepos)
{
- if(movex || movey || scalex != 1 || scaley != 1)
+ if(movex || movey || scalex != 1.0 || scaley != 1.0)
{
switch(tag->id)
{
matrix_adjust(&m, movex, movey, scalex, scaley, scalepos);
swf_SetMatrix(output, &m);
- //swf_ResetReadBits(tag);
+ if (tag->readBit) { tag->pos++; tag->readBit = 0; } //swf_ResetReadBits(tag);
+
swf_SetBlock(output, &tag->data[tag->pos], tag->len - tag->pos);
break;
}
matrix_adjust(&m, movex, movey, scalex, scaley, scalepos);
swf_SetMatrix(output, &m);
- //swf_ResetReadBits(tag);
+ if (tag->readBit) { tag->pos++; tag->readBit = 0; } //swf_ResetReadBits(tag);
+
swf_SetBlock(output, &tag->data[tag->pos], tag->len - tag->pos);
break;
}