X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=1a9b59fc66e3821ef1ea8f563ce6bf428476793c;hb=8955031b14e95adc09083898dc2a01d8f2c78fd0;hp=9a97d87048c19bdb817a886784b77ae2aa2a829c;hpb=d3e97bc274ac9534c72c29fa466f89fe4459f6e2;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 9a97d87..1a9b59f 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) +int swf_FontEnumerate(SWF * swf, void (*FontCallback) (void*, U16, U8 *, void*self), void*self) { int n; TAG *t; @@ -129,7 +129,7 @@ int swf_FontEnumerate(SWF * swf, void (*FontCallback) (void*, U16, U8 *), void*s s[l] = 0; } - (FontCallback) (self, id, s); + (FontCallback) (self, id, s, self); swf_RestoreTagPos(t); } @@ -1015,7 +1015,7 @@ int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d swf_SetRGB(t, color); } if (dx) { - if(dx == SET_TO_ZERO) { + if(dx != SET_TO_ZERO) { if(dx>32767 || dx<-32768) fprintf(stderr, "Warning: Horizontal char position overflow: %d\n", dx); swf_SetS16(t, dx); @@ -1024,7 +1024,7 @@ int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d } } if (dy) { - if(dy == SET_TO_ZERO) { + if(dy != SET_TO_ZERO) { if(dy>32767 || dy<-32768) fprintf(stderr, "Warning: Vertical char position overflow: %d\n", dy); swf_SetS16(t, dy);