X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=06d3eea760289aca7011e7cedd22a1dcdb39d2d0;hb=251500bcdc5f8e159ad6793ccbe545abde19bc40;hp=69edf6cd5ef89c5c76625d87539a8cf41889eb0e;hpb=2828d9c7bdb68ced20dabb45ffb50ee178cd0015;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 69edf6c..06d3eea 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -1015,11 +1015,13 @@ int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d swf_SetRGB(t, color); } if (dx) { + dx &= ~SET_TO_ZERO; if(dx>32767 || dx<-32768) fprintf(stderr, "Warning: Horizontal char position overflow: %d\n", dx); swf_SetS16(t, dx); } if (dy) { + dy &= ~SET_TO_ZERO; if(dy>32767 || dy<-32768) fprintf(stderr, "Warning: Vertical char position overflow: %d\n", dy); swf_SetS16(t, dy);