From: kramm Date: Sun, 3 Apr 2005 11:05:09 +0000 (+0000) Subject: fixed swf_FontEnumerate() X-Git-Tag: release-0-7-0~137 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=e86d3573f78de7a1e0cde393190372e6085ce217;p=swftools.git fixed swf_FontEnumerate() --- diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 1a9b59f..8690989 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -101,7 +101,7 @@ int swf_FontIsBold(SWFFONT * f) static const int WRITEFONTID = 0x4e46; // font id for WriteFont and ReadFont -int swf_FontEnumerate(SWF * swf, void (*FontCallback) (void*, U16, U8 *, void*self), void*self) +int swf_FontEnumerate(SWF * swf, void (*FontCallback) (void*, U16, U8 *), void*self) { int n; TAG *t; @@ -129,7 +129,7 @@ int swf_FontEnumerate(SWF * swf, void (*FontCallback) (void*, U16, U8 *, void*se s[l] = 0; } - (FontCallback) (self, id, s, self); + (FontCallback) (self, id, s); swf_RestoreTagPos(t); }