X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfbutton.c;h=230b2b1d0a3d972ecc1db1f98fe403298a599021;hb=b89b5adf6eb597170044ff49d3cd8b414ddc34d9;hp=4f2b90f6d5912c11d2e537c7479ad56d3655d1ce;hpb=aee9de2c6eb23628e54b6896f5b441d9b39317c1;p=swftools.git diff --git a/lib/modules/swfbutton.c b/lib/modules/swfbutton.c index 4f2b90f..230b2b1 100644 --- a/lib/modules/swfbutton.c +++ b/lib/modules/swfbutton.c @@ -21,13 +21,15 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "../rfxswf.h" + int swf_ButtonSetRecord(TAG * t,U8 state,U16 id,U16 layer,MATRIX * m,CXFORM * cx) { swf_SetU8(t,state); swf_SetU16(t,id); swf_SetU16(t,layer); swf_SetMatrix(t,m); - if (swf_GetTagID(t)==ST_DEFINEBUTTON2) swf_SetCXForm(t,cx,0); + if (swf_GetTagID(t)==ST_DEFINEBUTTON2) swf_SetCXForm(t,cx,1); return 0; } @@ -73,7 +75,7 @@ int swf_ButtonPostProcess(TAG * t,int anz_action) { swf_GetU16(t); // id swf_GetU16(t); // layer swf_GetMatrix(t,NULL); // matrix - swf_GetCXForm(t,NULL,0);// CXForm + swf_GetCXForm(t,NULL,1);// CXForm } swf_SetButtonOffset(t,offsetpos);