[PATCH] libming Bug #226536
Hi,
this patch should close #226536
Klaus
diff -urN libming-0.2a.cvs20030716/src/blocks/button.h libming-fixed/src/blocks/button.h
--- libming-0.2a.cvs20030716/src/blocks/button.h 2003-07-16 17:41:56.000000000 +0200
+++ libming-fixed/src/blocks/button.h 2004-01-12 16:43:36.000000000 +0100
@@ -73,4 +73,8 @@
SWFSoundInstance
SWFButtonSound_setSound(SWFButtonSound sounds, SWFSound sound, byte flags);
+SWFButtonSound
+getButtonSound(SWFButton button);
+
+
#endif /* SWF_BUTTON_H_INCLUDED */
diff -urN libming-0.2a.cvs20030716/src/displaylist.c libming-fixed/src/displaylist.c
--- libming-0.2a.cvs20030716/src/displaylist.c 2003-07-16 17:40:57.000000000 +0200
+++ libming-fixed/src/displaylist.c 2004-01-12 16:40:30.000000000 +0100
@@ -27,6 +27,7 @@
#include "blocks/placeobject.h"
#include "blocks/character.h"
#include "blocks/matrix.h"
+#include "blocks/button.h"
#define ITEM_NEW (1<<0)
#define ITEM_REMOVED (1<<1)
@@ -503,7 +504,7 @@
if ( item->block != NULL )
SWFBlockList_addBlock(blocklist, (SWFBlock)item->block);
if(((SWFBlock)character)->type == SWF_DEFINEBUTTON2)
- { SWFCharacter buttonsound = getButtonSound(character);
+ { SWFButtonSound buttonsound = getButtonSound((SWFButton)character);
if(buttonsound)
SWFBlockList_addBlock(blocklist, (SWFBlock)buttonsound);
}
Reply to: