swf_SetU16(output, swf_GetU16(tag)); //id
}
// flags & 4
- swf_GetMatrix(tag, &m);
+ if(flags&4) {
+ swf_GetMatrix(tag, &m);
+ } else {
+ swf_GetMatrix(0, &m);
+ }
matrix_adjust(&m);
swf_SetMatrix(output, &m);
if(config.overlay && !config.isframe) {
tag = swf_InsertTag(tag, ST_PLACEOBJECT2);
swf_SetU8(tag, 2); //flags: character
- swf_SetU16(tag, 0); //depth
+ swf_SetU16(tag, 1); //depth
swf_SetU16(tag, replaceddefine); //id
}
rtag->id, rtag->len);
tag = swf_InsertTag(tag, rtag->id);
write_changepos(tag, rtag);
-
- changedepth(tag, +1);
+
+ changedepth(tag, +2);
if(tag->id == ST_SHOWFRAME)
{