From 12e8dca141cb9e4685cc1156da537d2ce96ad8c3 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 21 Jul 2002 13:59:41 +0000 Subject: [PATCH] several bugfixes. --- src/swfcombine.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/swfcombine.c b/src/swfcombine.c index 0bc978c..9dedbf8 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -506,7 +506,11 @@ void write_changepos(TAG*output, TAG*tag) 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); @@ -562,7 +566,7 @@ TAG* write_sprite(TAG*tag, SWF*sprite, int spriteid, int replaceddefine) 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 } @@ -575,8 +579,8 @@ TAG* write_sprite(TAG*tag, SWF*sprite, int spriteid, int replaceddefine) 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) { -- 1.7.10.4